[GH-ISSUE #575] Get correct response data but occurs with error "Cannot read property 'value' of undefined" #209

Closed
opened 2026-03-16 14:02:55 +03:00 by kerem · 6 comments
Owner

Originally created by @ishowman on GitHub (Feb 16, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/575

Describe the bug
After send the request, and get the error info "Cannot read property 'value' of undefined", while the request shows that it get data success when I check the api in devtool Network
To Reproduce
Steps to reproduce the behavior:

  1. Fill with Method: Get, Url: 'https://dxhdyy.ga.sz.gov.cn', Path: '/2019ncov/js/home.js?v=202002132300'
  2. Click on 'Send'
  3. Scroll down to 'Response'
  4. See error "Cannot read property 'value' of undefine"
  5. check the api in Network, it is success
success: true
data: "..."
status: 200

Expected behavior
Response show the data of data field

Desktop (please complete the following information):

  • OS: Win10 X64 19041
  • Browser: Chorme
  • Version: 80

Additional context
It's happend today, while it's absolute normal yesterday

Originally created by @ishowman on GitHub (Feb 16, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/575 **Describe the bug** After send the request, and get the error info "Cannot read property 'value' of undefined", while the request shows that it get data success when I check the api in devtool Network **To Reproduce** Steps to reproduce the behavior: 1. Fill with `Method: Get, Url: 'https://dxhdyy.ga.sz.gov.cn', Path: '/2019ncov/js/home.js?v=202002132300'` 2. Click on 'Send' 3. Scroll down to 'Response' 4. See error "Cannot read property 'value' of undefine" 5. check the api in Network, it is success ``` success: true data: "..." status: 200 ``` **Expected behavior** Response show the data of data field **Desktop (please complete the following information):** - OS: Win10 X64 19041 - Browser: Chorme - Version: 80 **Additional context** It's happend today, while it's absolute normal yesterday
kerem closed this issue 2026-03-16 14:03:00 +03:00
Author
Owner

@liyasthomas commented on GitHub (Feb 16, 2020):

Can you give the sharable link of your request setup?
Does this setup meets your mentioned setup? https://postwoman.io/?method=GET&url=https://dxhdyy.ga.sz.gov.cn&path=/2019ncov/js/home.js?v=202002132300&params=%5B%7B%22key%22:%22v%22,%22value%22:%22202002132300%22%7D%5D

No 'Access-Control-Allow-Origin' header is present on the requested resource.

Turn on Proxy mode to fix CORS issues.

<!-- gh-comment-id:586721790 --> @liyasthomas commented on GitHub (Feb 16, 2020): Can you give the sharable link of your request setup? Does this setup meets your mentioned setup? https://postwoman.io/?method=GET&url=https://dxhdyy.ga.sz.gov.cn&path=/2019ncov/js/home.js?v=202002132300&params=%5B%7B%22key%22:%22v%22,%22value%22:%22202002132300%22%7D%5D > ` No 'Access-Control-Allow-Origin' header is present on the requested resource.` Turn on Proxy mode to fix `CORS` issues.
Author
Owner

@yterletskyi commented on GitHub (May 27, 2020):

I'm experiencing the same issue, however CORS is working correctly.
For example see the request to a public api:
https://postwoman.io/?method=GET&url=https%3A%2F%2Fworldtimeapi.org
(https://worldtimeapi.org/api/timezone)

image

Could you please help?

<!-- gh-comment-id:634687770 --> @yterletskyi commented on GitHub (May 27, 2020): I'm experiencing the same issue, however CORS is working correctly. For example see the request to a public api: https://postwoman.io/?method=GET&url=https%3A%2F%2Fworldtimeapi.org (https://worldtimeapi.org/api/timezone) ![image](https://user-images.githubusercontent.com/11182351/83031370-24daf500-a03d-11ea-8103-e215456fbfb5.png) Could you please help?
Author
Owner

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

@yterletskyi endpoint: https://worldtimeapi.org/api/timezone seems to be working fine at my end.
Open in an incognito tab and test: https://postwoman.io/?method=GET&url=https://worldtimeapi.org&path=/api/timezone

<!-- gh-comment-id:634698033 --> @liyasthomas commented on GitHub (May 27, 2020): @yterletskyi endpoint: `https://worldtimeapi.org/api/timezone` seems to be working fine at my end. Open in an incognito tab and test: https://postwoman.io/?method=GET&url=https://worldtimeapi.org&path=/api/timezone
Author
Owner

@yterletskyi commented on GitHub (May 27, 2020):

@liyasthomas works good in an incognito tab.
Do you think some configurations on browser fail it?

<!-- gh-comment-id:634713324 --> @yterletskyi commented on GitHub (May 27, 2020): @liyasthomas works good in an incognito tab. Do you think some configurations on browser fail it?
Author
Owner

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

@yterletskyi no, browser configs may not be an issue. Confirm it is working by clearing the cache and testing on regular tab. Let me know if the issue persists.

<!-- gh-comment-id:634721617 --> @liyasthomas commented on GitHub (May 27, 2020): @yterletskyi no, browser configs may not be an issue. Confirm it is working by clearing the cache and testing on regular tab. Let me know if the issue persists.
Author
Owner

@yterletskyi commented on GitHub (May 27, 2020):

Worked by your recipe. I'm not sure what caused it, if you need more details from my end let me know thanks.

<!-- gh-comment-id:634749897 --> @yterletskyi commented on GitHub (May 27, 2020): Worked by your recipe. I'm not sure what caused it, if you need more details from my end let me know thanks.
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#209
No description provided.