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

When server returns Bad Gateway (502) response throws Faraday::ParsingError error #15

Open
sinsoku opened this issue Sep 8, 2017 · 0 comments

Comments

@sinsoku
Copy link

sinsoku commented Sep 8, 2017

Because the API server returns HTML, so Faraday throws an error. 😢

Faraday::ParsingError: 765: unexpected token at '<!DOCTYPE html>
<html>
  <head>
    <title>Bad Gateway (502)</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="description" content="Bad Gateway (502)"/>
    <style type="text/css">
    ...
    </script>
  </body>
</html>
'
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

1 participant