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

TypeError: Failed to fetch #252

Open
rabbittsoup opened this issue Jan 5, 2024 · 3 comments
Open

TypeError: Failed to fetch #252

rabbittsoup opened this issue Jan 5, 2024 · 3 comments

Comments

@rabbittsoup
Copy link

I'm having trouble reaching a rest API hosted through a special port. I don't seem to have issues with any hosts that use the expected 80/443 ports. I'm not sure what the cause is, but the special port is the only thing I can think of that's different from other hosts that work fine.

Example:
GET https://my.host:8081/status

Displays "Could not send request" error page. The Chrome developer tools console shows:

extension.ts:230 TypeError: Failed to fetch
at o (chrome-extension://amknoiejhlmhancpahfcfcfhllgkpbld/index.js:2:13)
at N (chrome-extension://amknoiejhlmhancpahfcfcfhllgkpbld/index.js:3:1484)
(anonymous) @ console.js:36
runRequestOnExtension @ extension.ts:230

@liyasthomas
Copy link
Member

Since you're using the browser extension, can you make sure that you've added the origin with port number https://my.host:8081 to Hoppscotch Browser Extension's origin list?

Documentation: https://docs.hoppscotch.io/documentation/getting-started/setup#locally-served-apis

@rabbittsoup
Copy link
Author

Thank you for the suggestion. I see no change in behavior after adding https://my.host:8081 to the origin list of the extension. To be clear, my.host is a rest API host, not the Hoppscotch web app host. I am still using the web app from hoppscotch.io.

@AllenAttuned
Copy link

AllenAttuned commented Feb 6, 2024

I'm also getting this error on both Edge (121.0.2277.106) and Chrome (121.0.6167.139) with the extension version 0.31. It doesn't happen on Firefox (122.0) with version 0.31 of the extension.

This endpoint I'm trying to hit is running locally with a hostname defined in my /etc/hosts file. I've added it to the extension's whitelist.

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