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

Error Code is sometimes 4294967295 #18

Open
AndersenJ opened this issue Jan 25, 2019 · 6 comments
Open

Error Code is sometimes 4294967295 #18

AndersenJ opened this issue Jan 25, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@AndersenJ
Copy link
Contributor

Sometimes, the error code is listed as 4294967295. I have no idea why.

This happened once when the base url was mis-entered as http://wallink/.groups.et.byu.net/get_image.php.

@AndersenJ
Copy link
Contributor Author

In this case, it seems to be caused by the following line:

rtcData.errorCode = httpCode;

I guess if you try to make an HTTP request with a malformed URL, it returns a negative httpCode; this negative httpCode gets stored as an unsigned integer, and we end up with a ridiculous huge number. There are, however, other cases where we're getting this error with good URLs. I'll look at the logs and see if I can understand anything.

@AndersenJ
Copy link
Contributor Author

I found roughly 20 instances of this happening in our logs from roughly a dozen different devices. There doesn't seem to be much explanation as to why this happens, so the only way I can imagine I'll learn anything is by hooking the device up via serial and logging the filtered output into a file. It may be that some part of the URL other than the base URL is being malformed, but it isn't immediately obvious how that might be happening.

@AndersenJ AndersenJ self-assigned this Jan 25, 2019
@AndersenJ AndersenJ added the bug Something isn't working label Jan 25, 2019
@AndersenJ
Copy link
Contributor Author

I've found that this happens much, much more frequently on some devices than on others. Also, I got the following debug information over serial:

http://wallink.groups.et.byu.net/get_image.php?mac_address=68C63A874003&firmware=4.02a_debug&error=4294967295&width=640&height=384&voltage=3.24
[HTTP] begin...
[HTTP] GET...
[HTTP] GET... failed, error: connection refused

There was some other stuff, but this seemed to be most relevant.

@Pillmayr
Copy link

Is it possible that the problem occurs when the web resource takes too long to create the archive?
My demo installation with static content (Hard coded ICAL File) works perfectly on the devices.
When I dynamically load the iCal externally, I get the same error from time to time.

@AndersenJ
Copy link
Contributor Author

AndersenJ commented Apr 11, 2019

I think it's possible that that could trigger the error, but I don't think it's the problem in my case. We have roughly 50 of these things running right now, and one of them gets this error more often than all the rest combined - about a dozen times per day. I switched it to the static images plugin to test this though; I'll get back to you tomorrow, if I remember.

@Pillmayr
Copy link

For you... i've implemented an own version of the "image" server (php with laravel -> inspired by https://github.com/bajensen/wall-ink-php) so that the ical data for the calendars are prefiltered & cached by a cronjob. during my work on the server, i found out, that the ical files are quite big, as the ical file contains all the calendar data, even the data in the past. In my case, I had a high-traffic meeting room, where many meetings have already taken place. The ICal File has about 1,8mb (!!). I download the file in advance and save the filtered version of the data so that I only have to handle the data of "today", when the wall-inks connects to download the image-archive.
This almost eliminates the problem.

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

No branches or pull requests

2 participants