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
User Repo #17
Comments
The user agent set is
|
That will probably be the cause. Sourceforge will think it is a browser and present a webpage to select download mirrors etc., instead of just serving the file directly. |
Note that the user agent is likely different when downloading images. |
I hosted a custom json file on sourceforge and it wouldn't load. I had to move it and the icon file to github for it to work. I had the same issue with PINN which is why I know sourceforge is picky about user agents. But the image won't load from sourceforge either. Do you know the correct URL API to access an asset from a release on GitHub. I will post my URLS later so you can try it out. |
While I have not tested it with the rpi Imager, I recall Berryboot does use the standard libcurl user-agent, and gets its images from sourceforge. |
I've just tried sourcing the image from Sourceforge again and it works now, whereas it didn't before. Maybe it was just a temporary internet issue at my end. 🤷♂ So the image now loads from there, but the icon or json file still don't. You can try it with this JSON file.
The subitem URL contains 2 copies of the same PINN image, one on Github and one on Sourceforge. Both images can now be downloaded, but the icon from sourceforge does not load. Debug says the image is the wrong format - I suspect because sourceforge is serving up a HTML file based on the user-agent. EDIT: Here is the debug message: |
If I try to download .... Ahhh, but I get different behaviour if I use |
Even if we change the code to set user-agent now to trick sourceforge, that would mean that users that have downloaded the imager software already would not be able to use your repository if it were added to the main list. Just find another hoster for your json and icon. And only use them for the actual images. Keep in mind that there is no update mechanism in place for the imager software. |
I've resolved the hosting for the icon and json files by putting them on github, and the image loads ok from sourceforge now.
|
The imaging Utility does not like to access resources hosted on sourceforge.
I suspect it is because the UserAgent is set to a default value that is not compatible.
I suggest to use "Wget/1.15 (linux-gnu)" which works in PINN.
I notice there is
void DownloadThread::setUserAgent(const QByteArray &ua)
but I don't know what it gets set to (if at all).The text was updated successfully, but these errors were encountered: