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

Proxy or data server is down #1155

Open
justinbmeyer opened this issue Dec 20, 2018 · 4 comments
Open

Proxy or data server is down #1155

justinbmeyer opened this issue Dec 20, 2018 · 4 comments

Comments

@justinbmeyer
Copy link
Contributor

steal.import("place-my-order/models/restaurant")
  .then(function(module) {
    var Restaurant = module["default"];
    return Restaurant.getList({});
  }).then(function(restaurants) {
    console.log(restaurants);
  });

image

@justinbmeyer
Copy link
Contributor Author

I didn't have the proxy server running ... we might need a better warning, suggestion what to do

@matthewp
Copy link
Contributor

Trying to think how this should work exactly. done-serve is the thing that sets up the proxy. I suppose it could catch when a 500 occurs and provide a better error message within the console.

In the context of this bug, however, you might not notice this just from looking at the browser console. Perhaps a "better" fix would come from something like donejs/done-serve#22 and provide a front-end UI that reports errors as they occur.

@justinbmeyer
Copy link
Contributor Author

I was thinking in the guide we just say something like:

If you are getting a 500 error, make sure your data server is running.

@matthewp
Copy link
Contributor

Ah ok,that's easy enough then.

@matthewp matthewp removed their assignment Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants