mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #894] TypeError: Cannot read property 'startsWith' of undefined - after getting 401 response #314
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#314
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 @jonasbark on GitHub (May 24, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/894
Originally assigned to: @AndrewBastin on GitHub.
Describe the bug
Javascript error after sending request.
To Reproduce
Javascript error:
Without the extension:
HTTP Response from the server:
By default Spring Boot does not send a response body for unauthorized requests - so no content-type is included in the response header I guess.
Expected behavior
401 HTTP error message
Desktop (please complete the following information):
I can share the URL + Headers for the request privately if needed :)
@liyasthomas commented on GitHub (May 24, 2020):
Hi @jonasbark ,
can you try force reloading the web app and see whether issue exists or not?
@jonasbark commented on GitHub (May 24, 2020):
Still happens - I only discovered Postwoman yesterday, so it's probably not a cache issue :)
@AndrewBastin commented on GitHub (May 24, 2020):
Oops I get the problem.
I will roll out a patch in an hour or so.
It will take a day or two to get this bug fixed on the extensions though (Chrome Web Store verification takes time)
The new transformResponse code expects a content type header to be present which was not there in the request, hence startsWith ran against null.