Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

"Got error: Error: Failed response from server: 500 <unavailable>" in /popup/popup.js:94:15 #99

Closed
pdehaan opened this issue Aug 14, 2019 · 4 comments
Assignees
Milestone

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Aug 14, 2019

git rev-parse --short HEAD # 15bfe95
npm run once

Not sure this is exactly related to #98, but that was how I was able to reproduce it consistently.

Steps to reproduce

  1. Open Browser Console (Tools > Web Developer > Browser Console). You can clear any existing output if it's noisy.
  2. Click toolbar icon
  3. Wait for the wavy line but don't say anything.
  4. Wait for ~8-10 seconds.
  5. Watch Browser Console.

Actual results

Browser_Console

https://github.com/mozilla/firefox-voice/blob/15bfe950a1f7ae957ef11c261068ec75ea488fe2/extension/popup/popup.js#L93-L96

Not sure why we'd get a 500 response from a server, but maybe we can more elegantly capture searches with no audio. I did see a "goCloud, why: Raise novoice" in the console output (via vad.js:156), so maybe we already know there was no voice search and we can fail better.

@pdehaan
Copy link
Contributor Author

pdehaan commented Aug 14, 2019

Also note that once you get that ominous 500 <unavailable> error, you're unable to perform a search, even though the UI still says "Listening".

@ianb
Copy link
Contributor

ianb commented Aug 14, 2019

Somewhat related to #103 (which at least will keep the UI consistent, but the 500 error is another issue)

@ianb ianb added this to the Internal beta milestone Aug 15, 2019
@ianb ianb self-assigned this Aug 30, 2019
@ianb
Copy link
Contributor

ianb commented Aug 30, 2019

#161 fixes #103 and gives a generic error message. We should talk to @andrenatal about why there are (somewhat frequent) 500 errors.

@ianb
Copy link
Contributor

ianb commented Feb 27, 2020

Error messages for this case removed in #1063

@ianb ianb closed this as completed Feb 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants