-
Notifications
You must be signed in to change notification settings - Fork 3
backend-url setting gets corrupted somehow #4
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
Comments
You don't need the protocol in the |
OpenDock used to prefix the value from I changed it to detect if it is prefixed with http:// or https:// and if thats the case, use the protocol specified by the user, otherwise use the one the site uses. |
That looks like a fix to me. Thanks! |
Is it possible to bootstrap from an empty database? My backend seems to be returning nothing for these four calls, and I was expecting that I could start from nothing, register the first user, upload the first mod, etc. However, an exception is thrown because The code where this exception is thrown: Lines 13 to 19 in 77b61b5
I can't tell whether the front end should be more prepared for this possibility, or if the backend should be returning something. |
If I recall correctly, you need to install some plugins, more specifically |
The backend has it's own command for that, it can setup the database with the data that is required to use it.
This is mainly used to populate internal data (like the various permissions). Also, the request fails because you try to browse the mods for a game with the gameshort OpenDock currently requires that one game is added to the database, #2 tries to change that, but I didn't have the time to finish it properly. |
But that's a long name. :( Hmm, I did run |
It shouldn't. Maybe it is simply the |
Trying {"codes":[1035],"error":true,"reasons":["You need to be logged in to access this page"]} ... which seems like a reasonable enough response. It's true that I'm not logged in, and it makes sense to hide certain info from anonymous users. |
OpenDock expects that response and deals with it. However, since the browse stuff is what is failing (and it isn't limited to logged in users), could you post the response of |
That returns the empty string, or as my browser puts it:
|
Thats really confusing, it should at least return an empty array. My last idea would be to delete and recreate the database completely, but I am unsure how much that would actually help |
What about your database, is it populated? |
He said he ran |
Yeah, if there's some way of independently verifying that |
Well, you could open the database and check if there is something inside of the tables. Or you could export it to an .sql file and upload it, so we can check. |
OK, here's some psql command line. I'll prune the tables that don't seem related...
|
Were you running the backend when you queried EDIT: if it doesn't work, try adding a trailing slash, e.g. |
Can you screenshot the error that is being thrown by |
sdb isn't raising errors. The terminal in that screenshot shows sdb while the page is refreshed. |
Thats a go stacktrace, so something is going terribly wrong there. So not really a user error, but an exception thrown by the code. Normally it shouldn't show those :D |
Aha! I guess that "redis" thing is required after all, going by the port number?
Sorry, I didn't know what that was. I'll go look it up... |
Change |
That was definitely it!! {"count":2,"data":[{"active":true,"altname":"","created":"2018-02-15T21:55:44.274209-06:00","description":"","id":2,"meta":{},"name":"Factorio","publisher":2,"rating":0,"releasedate":"2018-02-15T21:55:44.274091-06:00","short":"factorio","short_description":"","updated":"2018-02-15T21:55:44.275501-06:00"},{"active":true,"altname":"","created":"2018-02-15T21:55:44.268473-06:00","description":"","id":1,"meta":{},"name":"Kerbal Space Program","publisher":1,"rating":0,"releasedate":"2018-02-15T21:55:44.268388-06:00","short":"kerbal-space-program","short_description":"","updated":"2018-02-15T21:56:03.887121-06:00"}],"error":false} |
And after installing If it's OK with you, I'd like to use my notes from this to make the README more idiot-proof. I think I hit most of the stumbling blocks that a new person is likely to encounter. |
I would love that! It's always terribly hard to write a README if you wrote the program too, because you don't know which things might be obvious, and which are hard to spot. |
Description (What went wrong?):
OpenDock loads to a large loading animation and stays that way:
If I open the dev tools and delete the div containing that graphic, the page content is there but (unsurprisingly) not initialized:
Reproduction Steps (What did you do?):
Set these in
config.php
across different tests:Expected Behavior (What do you think should have happened instead?):
Presumably the loading screen should only be visible for a few seconds or less.
Environment (OS/Browser/Plugins/etc):
Extra Information (Screenshots/Error Messages/Javascript Console Output):
Several errors show up in the browser console with invalid URLs that are apparent perversions of the configured
backend-url
. It looks like the first colon is spliced out, and thenhttp://
is added to the beginning:With
http://127.0.0.1:5000/
:With
https://127.0.0.1:5000/
:Maybe the setting isn't actually supposed to be a URL?
The text was updated successfully, but these errors were encountered: