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

text.match is not a function #764

Closed
lastlink opened this issue Apr 13, 2020 · 7 comments
Closed

text.match is not a function #764

lastlink opened this issue Apr 13, 2020 · 7 comments
Labels
need information Requires more info

Comments

@lastlink
Copy link

Describe the bug
Similar error to https://stackoverflow.com/questions/59061937/postwoman-api-tester-response-is-always-empty.
I keep getting a 500 text.match is not a function when I run a get api request

@liyasthomas
Copy link
Member

Please share the steps to reproduce the issue

@liyasthomas liyasthomas added the need information Requires more info label Apr 13, 2020
@liyasthomas
Copy link
Member

Closing due to inactivity.

@Creedowl
Copy link

Creedowl commented Jul 6, 2020

I had the same issue. I try to GET https://live.bilibili.com/21403609 with Header: Accept: /
It'll return 200 but nothing in Postwoman's Response area, and I get a TypeError: text.match is not a function.
I tried curl and postman, both works well, so I guess it's postwoman's issue

@liyasthomas
Copy link
Member

There's a known issue with the current published version of Postwoman Chrome extension (v. 012). Latest version is under review. To fix the issue - try disabling extension by going to Settings > Extensions (turn off "Use extensions").

Let me know if the issue is fixed.

@Creedowl
Copy link

Creedowl commented Jul 6, 2020

@liyasthomas The request will be blocked by CORS policy if I turn off extension

(index):1 Access to XMLHttpRequest at 'https://live.bilibili.com/21403609' from origin 'https://postwoman.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@liyasthomas
Copy link
Member

can you try turning on Proxy mode (Settings > Proxy)?

@Creedowl
Copy link

Creedowl commented Jul 6, 2020

@liyasthomas Yes via proxy it works well, the Response shows properly. BTW, I used to think the proxy is socks proxy or http proxy, but I found it's proxywoman

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

No branches or pull requests

3 participants