[GH-ISSUE #1927] 500 Error invalid URL issue shows while environment variable contained 'http://' used in REST API #617

Closed
opened 2026-03-16 16:24:02 +03:00 by kerem · 0 comments
Owner

Originally created by @elaoshi on GitHub (Nov 2, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1927

Originally assigned to: @AndrewBastin on GitHub.

Describe the bug
Can't just using like <<baseUrl>>/api/login while using environment in Rest API.
It will show invalid URL when refresh home page

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Rest' tab
  2. Click on url address bar and just type '<>/api/login'
  3. Scroll down to 'create environment and create a demo group , create a baseUrl variable with 'https://localhost'
  4. save it
  5. refresh page

500 , invalid URL

Expected behavior
The environment variable should able to set as "http://xxx" and run well as expected

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version 95.0.4638.54 (Official Build) (x86_64)

Additional context
As the screenshot , add the http:// in front of the 'endpoint' value will fix this issue.

Originally created by @elaoshi on GitHub (Nov 2, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1927 Originally assigned to: @AndrewBastin on GitHub. **Describe the bug** Can't just using like `<<baseUrl>>/api/login` while using environment in Rest API. It will show `invalid URL` when refresh home page **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Rest' tab 2. Click on url address bar and just type '<<baseUrl>>/api/login' 3. Scroll down to 'create environment and create a demo group , create a baseUrl variable with 'https://localhost' 4. save it 5. refresh page 500 , invalid URL **Expected behavior** The environment variable should able to set as "http://xxx" and run well as expected **Screenshots** ![image](https://user-images.githubusercontent.com/62131525/139802020-ccc6ef0a-946e-4a3d-a58e-8abe2fbcfefc.png) **Desktop (please complete the following information):** - OS: Mac - Browser Chrome - Version 95.0.4638.54 (Official Build) (x86_64) **Additional context** As the screenshot , add the `http://` in front of the 'endpoint' value will fix this issue.
kerem 2026-03-16 16:24:02 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#617
No description provided.