Skip to content

GET method invoked but getting "load failed" in the browser #244

@gailloue

Description

@gailloue

Hi All,

This project is exactly what I need. However, the "DEMO" link fails to load data. I tried the same method from the command line:

curl -v https://restool-sample-app.herokuapp.com/api/character/?search=

And get this error:

> GET /api/character/?search=* HTTP/1.1
> Host: restool-sample-app.herokuapp.com
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
...
  <body>
    <iframe src="//www.herokucdn.com/error-pages/no-such-app.html"></iframe>
  </body>

Is there any data? The no-such-app seems to indicate some other issue.

I then proceeded to create my own public/config.json with these relevant sections:

  "baseUrl": "http://52.42.5.126:5000",
...
          "dataPath": "profiles",
          "url": "/profile",

I can get data from my own daemon:

# curl -v http://52.42.5.126:5000/profile
...
{"profiles": [{"name": "us-west-2a", "thumbnail": "...220x38.png"}, {"name": "us-west-2b", "thumbnail": "...220x38.png"}]}

Note: I shortened the path the png files in the output above but checked that it's valid.

When I refresh the browser, the query is launched and data is returned but the main screen also says "load failed".

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions