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

The download config file steps in the quick start guide leads to errors #50

Closed
YourTechBud opened this issue Mar 18, 2019 · 13 comments
Closed
Labels
🐛 bug Something isn't working 📝 docs Issues related to the documentation

Comments

@YourTechBud
Copy link
Collaborator

I've heard quite a few people having troubles with downloading the config file step. Apparently copying and pasting the config directly in a file doesn't work.

@KhushalPShah faced the same issue I guess.

@YourTechBud YourTechBud added 🐛 bug Something isn't working 📝 docs Issues related to the documentation labels Mar 18, 2019
@HeyItsJs
Copy link
Contributor

Can we have some more context to this? Like on what OS does this problem arises and what errors are reported? @KhushalPShah

@YourTechBud
Copy link
Collaborator Author

I think this links back to #28.

@KhushalPShah
Copy link
Contributor

Can we have some more context to this? Like on what OS does this problem arises and what errors are reported? @KhushalPShah

I tried copying the contents of the config file, as well as downloading the config file.
Neither of it worked.
I tried it on Ubuntu.

@YourTechBud
Copy link
Collaborator Author

Whats the space-cloud version you are using?

@high-functioning-sociopath
Copy link
Contributor

Unable to download config file.
Unsuccessful attempt to copy and run the config contents(raw) to config.yaml
How does the space-up api pick up the index.html file? Because I tried saving the file at the same location as of config, but resulted in 404 not found error.

@HeyItsJs
Copy link
Contributor

When exactly did you get the 404 error? Immediately on running the space cloud or on making some request to space cloud via client api (if yes then which request)? Also what do you mean by space-up API pick up the index.html file? And what's the version of the space cloud you are running? @high-functioning-sociopath

@high-functioning-sociopath
Copy link
Contributor

high-functioning-sociopath commented Mar 19, 2019

Following the tutorial, I copied the config file and downloaded the index.html file from the todo example.
I started the space-cloud through terminal which said the server is running on port 8080.
So when I went to localhost:8080, it displayed the 404 HTTP error , which means it is not able to find the file.
So how does the space-cloud know which file (front-end, viz. todo app) to run? Because nowhere in the config file have I mentioned which file I want to run.
@Jayesh333

@YourTechBud
Copy link
Collaborator Author

@high-functioning-sociopath space-cloud doesn't host static files yet. Its a good idea to add that feature though. space-cloud only exposes the REST endpoints for the crud operations. Also, space cloud would throw an error if it couldn't load the config. @Jayesh333 we should add a log message saying "config loaded or something similar to make it more explicit.

You'll have to open the html file directly in the browser by double clicking it. I should have been more specific in the docs. The issue #28 does talk about this and what space-cloud really is.

Try opening the html file directly and then try?

@HeyItsJs
Copy link
Contributor

Yess agreed we should add a message saying config file loaded. Maybe we can also add a message saying that your backend server is up and running on port 8080 to make it more precise. Would that help? @YourTechBud @high-functioning-sociopath

@high-functioning-sociopath
Copy link
Contributor

Oh okay. I'll try doing that. @YourTechBud
Yes it would really be helpful for debugging. @Jayesh333
Also if would be really great if the guide was clearly defined.

@YourTechBud
Copy link
Collaborator Author

@KhushalPShah I think your problem was different? Can you tell us what was it you faced? Like with the steps?

@HeyItsJs
Copy link
Contributor

@KhushalPShah is this problem still there?

@YourTechBud
Copy link
Collaborator Author

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 📝 docs Issues related to the documentation
Projects
None yet
Development

No branches or pull requests

4 participants