mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1606] Installing as a PWA, Requests fail untill you install chrome extension #505
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#505
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @richard-muvirimi on GitHub (Apr 19, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1606
Describe the bug
All requests fail until you install the chrome extension and it doesn't tell you why the requests are failing, instead says:
Setup a proxy and press f12 to view the log
And the log doesn't have any useful information. This might give the impression to first time users that it does not work and might be better to first test for the chrome extension and show an appropriate message if it does not exist
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After entering url and hitting send. At least check if chrome extension is available and if not required set self up for that
Screenshots
Reproducible on windows, android and linux
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
None
@liyasthomas commented on GitHub (Apr 19, 2021):
By default, browser extension is not required to make API requests to hosted API endpoints. I guess you're requesting locally (
localhost) served API endpoints which why request failed without browser extension.We already have a similar issue ticket on #1376 where we're discussing better approaches to let the user know what went wrong and how to fix it. Please continue discussion on that thread and feel free to respond what you'd like to expect on such error cases. Thanks - closing this issue for #1376.
@richard-muvirimi commented on GitHub (Apr 19, 2021):
Here is a screenshot to help clarify. no extension and that's the message i get plus the url to a remote server.
@liyasthomas commented on GitHub (Apr 19, 2021):
You've to use
https://(HTTPS) protocol. Or else, try enabling Proxy mode from Settings > Proxy which allows you to requesthttp://endpoints.@richard-muvirimi commented on GitHub (Apr 19, 2021):
Ok have noticed the other issue. the error messages are actually the same. Would have loved to test my api's through a mobile device when not near a pc, (guess won't be possible if extension is required).
Have attached a screenshot after clearing the console and hitting send with https

@liyasthomas commented on GitHub (Apr 19, 2021):
Extension is only required to access APIs hosted in local server. It looks like you're using and
http://endpoint which can be fixed by turning on Proxy Mode from https://hoppscotch.io/settings@richard-muvirimi commented on GitHub (Apr 19, 2021):
Had tried with https.
Though looking at the bigger picture here, a user installs tries a url and gets above message. the first thing that comes to their mind is this extension does not work. The end result is most likely high downloads but low user retention. After going through #1376 i realised there are a few things we can do to go around this
Though all this basically comes down to the extension. Most test requests are done in local enviroments as opposed to production and would be detrimental to this app to only work by default on production api.
This is not my first time trying this app, but failed on first attempt and had to find a quick alternative as i did not have the time to try and find where the issue was. Today i tried again and after going through the settings GUESSED that maybe i needed to install an extesion and that's when i was able to successfully make a request. Not sure most would make such a wild guess.
I don't think asking users to setup a proxy is going to work when they can already do requests through alternatives and most probably have never setup one, (I for one).
@liyasthomas commented on GitHub (Apr 19, 2021):
As per the error message you got (https://github.com/hoppscotch/hoppscotch/issues/1606#issuecomment-822510787), the toast clearly shows to turn on Proxy mode for non https requests. Clicking on "Yes" will take you to Settings page from where you can turn on Proxy mode.
And turning on the Proxy would fix this instantaneously. As simple as that.
Also, you don't need to setup your own proxy for Proxy Mode. It does have a default proxy URL which is hosted by Hoppscotch itself and it's source code is available under the organisation.
@richard-muvirimi commented on GitHub (Apr 19, 2021):
Ok. guessing this issue will never be solved.
Just tried the proxy with extension disabled and another error message. Was just expressing my first impressions. Not sure how proxies work but i use a mobile connection and incoming requests are automatically blocked by my service provider.
Have a good a day. thanks for your time.