-
Notifications
You must be signed in to change notification settings - Fork 58
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
Blank page on connection #3
Comments
That's strange. Apparently the server is correctly sending the handshake reply to the app, but the app is interpreting it as an error. It's a pretty easy client-side fix, but I'm still curious about what exactly is being returned here. First, I'd like to rule out the app as the faulty part. Is it possible for you to try the app against the demo server? If that succeeds, something is wrong with the server stack (either the image itself, or some proxy in front of it). If it fails, the app is broken. Next, if the demo server does work - is there any chance you could run this command against your own server in your terminal and paste the output here? It will give me a hexdump of the entire HTTP handshake reply, but with your hostname removed. Just replace
If you want to see what data you're sending me first, just remove Finally, the blank page - could you check if there are any errors in the Network or Console tabs of developer tools (F12)? Might have to reload the page with those open for something to show up. |
The mobile app is working against the demo server so we can rule that out.
Okay, something interesting here, here is what I get in my dynamic.js.php:
|
Thanks a lot for the helpful hexdump and error message! Looks like there is indeed a stray newline in the output:
And this also connects to the warning you see in dynamic.js.php - there's a newline apparently coming from after the Might be possible to solve this if the PHP tag isn't closed by that tag. Can you try just removing the |
It fixes it. And yes there was a trailing line. Thank you very much ! Out of curiosity, how did you get that:
|
Awesome! I'll patch the default config so other don't get this issue.
That was a snip from your hexdump: HTTP headers are delimited by the body with "\r\n\r\n" or 0x0d 0x0a 0x0d 0x0a. The start of line 0x000000d0 shows an extra 0x0a; the newline that wasn't supposed to be there, which was then included as part of the body. |
Extra newlines at the end of the file would cause Hauk to malfunction. This fixes the issue.
Feature/altitude
Hello!
I'm trying to run Hauk with your docker image but I always end up on a blank page and when I try to start sharing my location with my phone I get an an error. Here are my logs:
I used your
config.php
just changed password (and it seems to work as if I put the wrong password in the mobile app I get a proper error) and the public url to match mine.Here is a mobile screenshot:
The text was updated successfully, but these errors were encountered: