[GH-ISSUE #731] Getting cannot read value of undefined #253

Closed
opened 2026-03-16 14:15:30 +03:00 by kerem · 11 comments
Owner

Originally created by @aashutoshrathi on GitHub (Apr 3, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/731

Describe the bug
All my request imported from cURL are getting this error
image

To Reproduce
Steps to reproduce the behavior:

  1. Click on import from cURL
  2. import a get curl
  3. send request
  4. See error

Expected behavior
The request should be sent as the curl is valid.

Screenshots
Added above

Desktop (please complete the following information):

  • OS: MacOS Catalina
  • Browser: Chrome
  • Version: 80.0.3987.149
Originally created by @aashutoshrathi on GitHub (Apr 3, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/731 **Describe the bug** All my request imported from cURL are getting this error ![image](https://user-images.githubusercontent.com/21199234/78327482-9dbc5400-759a-11ea-912f-484d2fbcd12f.png) **To Reproduce** Steps to reproduce the behavior: 1. Click on import from cURL 2. import a get curl 3. send request 4. See error **Expected behavior** The request should be sent as the curl is valid. **Screenshots** Added above **Desktop (please complete the following information):** - OS: MacOS Catalina - Browser: Chrome - Version: 80.0.3987.149
kerem 2026-03-16 14:15:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@liyasthomas commented on GitHub (Apr 3, 2020):

@aashutoshrathi Can you please share the masked cURL to reproduce the bug at our side.

<!-- gh-comment-id:608239699 --> @liyasthomas commented on GitHub (Apr 3, 2020): @aashutoshrathi Can you please share the masked cURL to reproduce the bug at our side.
Author
Owner

@aashutoshrathi commented on GitHub (Apr 3, 2020):

Sure.

curl -X GET "http://localhost:4242/people/search?type=HUMAN&queryString=a" 
-H "accept: application/json" 
-H "access-token: some-access-token" 
-H "firm: someFirm" -H "user: admin"

Also, @liyasthomas I tried on Chrome as well as PWA.

<!-- gh-comment-id:608251262 --> @aashutoshrathi commented on GitHub (Apr 3, 2020): Sure. ```sh curl -X GET "http://localhost:4242/people/search?type=HUMAN&queryString=a" -H "accept: application/json" -H "access-token: some-access-token" -H "firm: someFirm" -H "user: admin" ``` Also, @liyasthomas I tried on Chrome as well as PWA.
Author
Owner

@liyasthomas commented on GitHub (Apr 3, 2020):

Make sure you've installed Browser Extension to access localhost endpoints.

<!-- gh-comment-id:608265251 --> @liyasthomas commented on GitHub (Apr 3, 2020): Make sure you've installed Browser Extension to access `localhost` endpoints.
Author
Owner

@aashutoshrathi commented on GitHub (Apr 3, 2020):

Yeah. It worked.

<!-- gh-comment-id:608418856 --> @aashutoshrathi commented on GitHub (Apr 3, 2020): Yeah. It worked.
Author
Owner

@AndrewBastin commented on GitHub (Apr 3, 2020):

@liyasthomas even if this is a browser extension issue, the app shouldn't be doing that.

Definitely a bug.

<!-- gh-comment-id:608467281 --> @AndrewBastin commented on GitHub (Apr 3, 2020): @liyasthomas even if this is a browser extension issue, the app shouldn't be doing that. Definitely a bug.
Author
Owner

@liyasthomas commented on GitHub (Apr 3, 2020):

@AndrewBastin yes, you're right. reopening issue to track it.

<!-- gh-comment-id:608473800 --> @liyasthomas commented on GitHub (Apr 3, 2020): @AndrewBastin yes, you're right. reopening issue to track it.
Author
Owner

@liyasthomas commented on GitHub (Apr 3, 2020):

@aashutoshrathi can you please explain in which instance/action you had the mentioned console errors as in the screenshot.

<!-- gh-comment-id:608474455 --> @liyasthomas commented on GitHub (Apr 3, 2020): @aashutoshrathi can you please explain in which instance/action you had the mentioned console errors as in the screenshot.
Author
Owner

@aashutoshrathi commented on GitHub (Apr 4, 2020):

The cURL above was not working, but some other cURL worked later.
Also, the import isn't working properly for me, the URL doesn't change for some reason.

2020-04-04 11 24 49

<!-- gh-comment-id:608979849 --> @aashutoshrathi commented on GitHub (Apr 4, 2020): The cURL above was not working, but some other cURL worked later. Also, the import isn't working properly for me, the URL doesn't change for some reason. ![2020-04-04 11 24 49](https://user-images.githubusercontent.com/21199234/78419831-2274a400-7667-11ea-86e3-06b38f5a3d06.gif)
Author
Owner

@diego-vergara commented on GitHub (May 9, 2020):

Hi, I get this error when I logged with Github, the request was correct, if I log out works fine.
PS: I'm not sure if is the same error.

image

<!-- gh-comment-id:626249820 --> @diego-vergara commented on GitHub (May 9, 2020): Hi, I get this error when I logged with Github, the request was correct, if I log out works fine. PS: I'm not sure if is the same error. ![image](https://user-images.githubusercontent.com/16439985/81487511-a81ddd80-922b-11ea-8a8e-478ff2c5749e.png)
Author
Owner

@liyasthomas commented on GitHub (May 10, 2020):

@diego-vergara

Well, I can't reproduce the issue at my end. Possible reason for this issue may be a cached build in localstorage.

Try uninstalling service worker
Goto Developer Tools (F12) > (might need to click the double right chevron ») Application tab > Service Workers > Unregister and reload the page.

If the issue is still persisting, try clearing app data. Notice: This clears all local synced History, Collections and Environments.
Goto Developer Tools (F12) > Application tab > Clear storage sidebar > Clear site data and reload the page.

<!-- gh-comment-id:626257880 --> @liyasthomas commented on GitHub (May 10, 2020): @diego-vergara Well, I can't reproduce the issue at my end. Possible reason for this issue may be a cached build in localstorage. **Try uninstalling service worker** Goto Developer Tools (F12) > (might need to click the double right chevron ») Application tab > Service Workers > Unregister and reload the page. If the issue is still persisting, **try clearing app data. Notice: This clears all local synced History, Collections and Environments**. Goto Developer Tools (F12) > Application tab > Clear storage sidebar > Clear site data and reload the page.
Author
Owner

@liyasthomas commented on GitHub (May 10, 2020):

I've pushed a hotfix, please let me know if the issue still persist.

<!-- gh-comment-id:626259841 --> @liyasthomas commented on GitHub (May 10, 2020): I've pushed a hotfix, please let me know if the issue still persist.
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#253
No description provided.