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
[Bug] Pyload Widget #517
Comments
I think they’re the same. Can you send the output of your curl command eg https://gethomepage.dev/en/more/troubleshooting/ |
Ah it's a challenge for me lol. in a shell window ? Edit : just in case the command is ok, result attached |
No, its not so easy for pyload, first:
which should return a session ID, then:
|
Thank's for your help shamoon. root@Nas:~# ^C root@Nas:~# curl -L -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "session=3" http://192.168.1.100:8100/api/statusServer I tried with my admin account, same : |
Hmm, that is odd its a pretty different output. Im not overly familiar with the project (besides testing) but are you using https://github.com/pyload/pyload --> https://github.com/linuxserver/docker-pyload i.e. lscr.io/linuxserver/pyload ? |
Oh weird, theres https://github.com/linuxserver/docker-pyload and https://github.com/linuxserver/docker-pyload-ng . Im not sure what the difference is According to the official docs, thats not what the login endpoint should return https://github.com/pyload/pyload/wiki/How-to-access-the-API |
If I make no error, pyload-ng is a rewrite of pyload using python 3 instead of python 2 for pyload. Yes, I confirm, I use https://github.com/linuxserver/docker-pyload-ng Don't waste your time, may be one day, a plyload-ng widget will appear ? :-) |
Ah, thanks for the explanation. Its a little confusing to figure that out online. Anyway I figured out that the -ng API returns the session in a cookie and requires it as such, totally different than non-ng. I believe this is fixed now and the widget should work for both, please let me know! |
Yeah, works fine now Thank you @shamoon :-) |
In complement. |
Hmm, Ive left it running longer than that and havent seen this. The session token shouldn't expire that fast (though I realized I do need to make it expire eventually at least for -ng). Can you look in the browser network tab and report the output of |
The report of the command : The strange thing is that after a few times, the API returns ok. But I wasn't behind my screen. The API is ok for this report |
Ah this is the report with API error : TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object |
It's crazy, lol without doing anything |
Its a weird API tbh, it does things like return status 200 (normal) even on login failure. I just pushed another change (takes a bit of time to build) that might at least make the error output for you more helpful. But also I would suggest re-creating the container and see if that helps with the intermittent thing. If you are still getting it with the newer version, please check the logs (docker) and the same network call output as above again. |
With your last widget update, no more API error. Thanks shamoon 👍 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Description
I use pyload-ng docker.
I get an API error with Pyload widget.
I created a user with "LIST" permissions (I also tried with an admin user)
my
services.yaml
:My log file :
homepage-main.log
Is there something wrong with my parameters ?
Or the widget is only ok for pyload and not for pyload-ng ?
Steps to reproduce
same configuration, with docker
pyload-ng
homepage version
main (eff2f1a, 10 nov. 2022)
Installation method
Docker
Configuration
Unraid + linuxserver/docker-pyload-ng
Other
No response
The text was updated successfully, but these errors were encountered: