Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get correct response data but occurs with error "Cannot read property 'value' of undefined" #575

Closed
ishowman opened this issue Feb 16, 2020 · 6 comments

Comments

@ishowman
Copy link

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

@liyasthomas
Copy link
Member

liyasthomas commented 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.

@yterletskyi
Copy link

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?

@liyasthomas
Copy link
Member

liyasthomas commented 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

@yterletskyi
Copy link

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

@liyasthomas
Copy link
Member

@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.

@yterletskyi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants