Skip to content

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

Open
@sinsoku

Description

@sinsoku

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>
'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions