Alt App Store error

Hey AK,

I tried downloading the “Virtual HTTP Devices” plugin by @therealdb but received the following error:

2020-04-04 13:55:51.682 luup_log:4: AltAppStore : starting phase…
2020-04-04 13:55:51.683 luup_log:4: AltAppStore : downloading dbochicchio/vera [master] to trash/AltAppStore/
2020-04-04 13:55:52.206 luup_log:4: AltAppStore : GitHub request: https://api.github.com/repos/dbochicchio/vera/contentsVirtualDevices?ref=master
2020-04-04 13:55:52.206 luup_log:4: AltAppStore : error downloading: JSON decode error @[1 of 0]: invalid JSON syntax at or near ‘’

The JSON parses correctly if I go directly to the link:
https://api.github.com/repos/dbochicchio/vera/contentsVirtualDevices?ref=master

Do you know what might be occurring here?

Thanks

What openLuup version are you using?

…what do you mean by that, exactly?

I have just downloaded a version of that plugin successfully in two different ways (one using AltUI, and the other with openLuup directly. I am using the latest development version of openLuup, which I suggest you upgrade to.)

I just manually upgraded to the latest development version as nothing was updating via the plugin UI in the version I was using (20.2.26). After installing all the files in the latest development branch, the App store is now working as expected. Not sure what was going on there, but the log entries are accurate.

What I meant by “parsing” is that if I go directly to the link, the JSON displayed in my browser without any errors.

I am seeing this in the logs though:

2020-04-04 14:53:55.718 openLuup.http:: GET /data_request?id=user_data&output_format=json&DataVersion=36947947&_=1586036928411 HTTP/1.1 tcp{client}: 0x5628bc681b28
2020-04-04 14:53:56.628 openLuup.http:: error ‘closed’ sending 6 bytes to tcp{client}: 0x5628bc681b28
2020-04-04 14:53:56.628 openLuup.http:: …only 0 bytes sent
2020-04-04 14:53:56.628 openLuup.http:: error ‘closed’ sending 1349959 bytes to tcp{client}: 0x5628bc681b28
2020-04-04 14:53:56.628 openLuup.http:: …only 112000 bytes sent
2020-04-04 14:53:56.629 openLuup.http:: error ‘closed’ sending 2 bytes to tcp{client}: 0x5628bc681b28
2020-04-04 14:53:56.629 openLuup.http:: …only 0 bytes sent
2020-04-04 14:53:56.629 openLuup.http:: error ‘closed’ sending 5 bytes to tcp{client}: 0x5628bc681b28
2020-04-04 14:53:56.630 openLuup.http:: …only 0 bytes sent
2020-04-04 14:53:56.630 openLuup.http:: request completed (1349959 bytes, 8 chunks, 910 ms) tcp{client}: 0x5628bc681b28

I don’t know the context of the http error… my browser connection?? Everything seems to be working correctly.

OK. The JSON error has nothing to do with the download files. The problem arises from some changes which GitHub has made, specifically the redirection of some URLs which the LuaSocket library is not able to handle. The latest development version has a workaround for this, so this shouldn’t happen again (for a while, at least!)

The HTTP error is something different again, but may just be a transient issue. Or do you see it regularly in the log?

I only see this after a luup reload. Which I seldom do, except when I’m developing or updating plugins…

1 Like

I had the same error and I thought it was transient. Good catch.