-
Notifications
You must be signed in to change notification settings - Fork 43
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 logging in to Locast #128
Comments
Confirmed over here in Chicago area.... Same exact issue.
I'm guessing something changed or got blocked.... need to go to the 925 now but will inspect a bit more tonight if noone else fixes it first. |
Same issue here in the Denver area.. I woke up this morning and it showed "Max Streams" and I wasnt using any streams. Restarted the container and got the above error. Error in function login: Not Found. I also will dig more tonight, once I finish my day job :) |
Same issue in DC area. |
Same in Seattle. My guess is it may be something on the locast side with how they're handling logins |
Hi All, I guess I picked the wrong day to start trying to use locast2plex. When I am running container in docker, it keeps on doing the error in function login: not found. Here in Detroit. |
I just checked (New York DMA 501) and see the same thing. |
Alright! I think we can safely say this is not isolated to a specific Metro Area! I'll bet money on it's what @dwkane Said.... Locast changed the login page/method something! |
Yes def in below: Locast changed something.... loginOpn = urllib.request.urlopen(loginReq) |
Hmmm, that's odd. I just simulated a login request to Locast in Chrome and it seemed to work okay. I was using it as late as 12 am last night without issues. I'll try to look into it further tonight. Definitely let us know if you find anything on your end, and thanks in advance! |
https://api.locastnet.org/ is returning 503 Temporarily Unavailable while https://api.locastnet.org/api/user/login is returning 405 Method not allowed. It seems to be on there end, but hopefully something that opens back up soon. |
Yep same Dallas just started this morning, tried retrograding to older version same errors. I am certain it is a Friday the 13th thing! ;-) |
Yep. I'm having the same problem in Los Angeles. |
Same issue in NYC market |
Same here in Boston market I can log in on chrome but cant get it to connect in the script. |
also having issues, this morning it was logged in but complaining about multiple streams. i just have locast2plex running, no other streams. so i restarted the container and now it won't log in |
Issues in Seattle too. Spent the last hour troubleshooting it. Seamed to stop working before 5am PST |
You cant open the login like that in a browser, you have to do it as a Post request. which appears to work fine, when I captured and replayed it in Burp |
Glad I checked here. Time to put my OTA to use. |
so changing the header line in the LocastService.py file will fix the login, don't ask me why. Something in the URLLIB library is demanding a User-Agent header apparently. well that aleast let my Docker container launch and get logged in, now to try and make it work with Plex :) |
@Above2 Excellent find! If anyone else can confirm as well, I'll try to add the line to the code and push it right away. |
Awesome catch Above2. I have confirmed that fixes the issue for me. Thank you! |
@tgorgdotcom I just copied the file out of the docker, made the change, and copied back in.. it works now. |
Changing the header line in the LocastService.py worked and allowed me to start the service. Now the issue is that I get an error saying Ive reached the maximum number of streams. I can play streams fine from the Locast website, just not on Plex. |
@Above2's change is applied. I wonder if I have to include it when accessing the stream. |
Wish it worked for me. I changed first instance of {'Content-Type': 'application/json'} in LocastService.py and also every instance, each time reset, and still get the same error in docker ( my email is changed below for this purpose,, and yes i am paid sub)- locast2plex_1 | UUID set to: zppsizol... |
I am getting the "You have reached the maximum number of active streams for this account" too with Plex... |
I'm guessing if the call is in multiple places you might, I was able to start the container, and add it to plex. But It cant start a stream for me. Not sure if its the same error or not. |
For those of you who can, please try this: On line 127 of main.py, update to the following:
Sorry I'm still technically at work or I would be testing this myself. |
I made that change to main.py but Im still getting the reached maximum connections error. |
@dscisci Try pulling the latest version to see if that fixes things. |
@tgorgdotcom, I just spun up the latest container and it's still failing (I've tokened out personal info, but the values are accurate and I've checked my creds against locast.org directly and they're working)
|
It worked Thomas, thanks! Happy Thanksgiving |
Sorry @tgorgdotcom, still not working for me with the 0.6.2 release, same error as above with both the container and the repo. Also for what it's worth my current password is 12 char long with no special characters (I changed it to ensure that #142 wasn't the issue I was hitting while testing on Thursday. |
I've been testing a bit more...using the Rest Client plugin for VS Code I passed the following:
And received the following response:
I attempted to log a ticket with locast directly to find out more about that error ID and got a laughable auto response and ticket closure within a 90 seconds of the ticket being opened. |
Hey guys just found out about locast today. Looks like a great project but I did run into the error that the OP had. However I think the way it is coded could be masking a few different login errors as the same top level error in the log file. In my case I have two plex servers one is here in the states (midwest) and I was able to supply the However I have another server that isn't in the US and I tried the exact same thing w/ the zipcode override and the Denver DMA 751 seems ok from the location in the log, however during the authentication portion I hit the above error the OP had. I set a break point and inspected the return i'm getting and it turns out i'm getting a 204 (no content), so there is nothing to use for the login. I thought perhaps they moved it to the headers but I don't see anything there either. Hopefully someone with more experience with this knows what we can do from here? I can test stuff out if anyone has any ideas and here is my debug session in case it is helpful for people:
|
I'm getting a similar error, but it is this:
|
Lots of comments here, but it seems like this is still a problem. Is anybody able to successfully use this? I, too, am getting the "Error in function login: Not Found" error. |
I'm using the latest 0.6.5 which worked until yesterday. I tried my Roku units and Locast had changed login requirements to require "activation" and software upgrades to limit use of their services to 7 user accounts, which broke everything, including Locast2Plex. I sent a support ticket, explaining Roku (something they do support) was broken. I also mentioned their timing is horrible since PNW is experiencing a record heatwave and we need access to local news. Once I finally got my 3 Roku units "activated", Locast2Plex started working again too. I'm in the Greater Seattle area. 0.6.5 is working, I'm not sure why, and wondering when Locast might break it again. |
I'm in Connecticut and have recordings on Plex via Locast2Plex from throughout the day. I just checked a few of them and they all recorded without issue and I was just watching one of the local channels via Locast2Plex on Plex. |
In the Seattle area too, but not having any issues. Just checked a recording from earlier today. I only really use it through plex or roku. |
Thanks for the response. Makes sense that the new Locast update could have broken this. The update includes family member profiles and favorite channels, which are both great additions to the native app. I’m looking forward to trying the integration with Plex.
…Sent from my iPhone
On Jun 29, 2021, at 7:57 PM, patrick-GH ***@***.***> wrote:
In the Seattle area too, but not having any issues. Just checked a recording from earlier today. I only really use it through plex or roku.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Similar issue just started for me (restarted container for first time in a few weeks). I'm running latest version locast2plex in Docker on a Synology. I have not changed anything on my end, it had been working for almost a year without intervention. I have verified that the same creds in my docker-compose work to log in on the Locast site, no issues there. I've also deleted the container and image and rebuilt, to no avail. Anyone else seeing the same? Logging into Locast using username myemailaddress@email.com... |
Just trying to start this up for the first time. Running in a command window and Python 3.9 on a windows 10 machine. I get the same Forbidden error and invalid locast login credentials. Also can use log in web browser to log in so values are not the issue. |
Same here - setting up locast 2 plex for the first time in the past hour. getting credentials error but have validated login id and password works from browser |
@tgorgdotcom, do you know what has caused this, or if there's a workaround? |
Nope - I suspect a change in some setting at locast. I don’t write python so I don’t have the skill set to fix. Guess I will be watching tv tonight over the air.
Valerie
… On Aug 5, 2021, at 1:58 PM, drewwats ***@***.***> wrote:
@tgorgdotcom, do you know what has caused this, or if there's a workaround?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I suspect the same. The locast2plex image hasn't changed in 6 months and my configuration hasn't either. Since it appears to be a common issue recently, an update on Locast's side is the most likely cause. |
there's another thread that locast just started implementing captcha. I screwed up trying to create a duplicate container and over wrote my existing, so now it's not working :( I'll have to try and fix it later tonight. |
Hello all (@drewwats, @vjlabbott, @GRSmithIA). Looks like a new issue has cropped up over the past couple days (see issue #272) I'm working to fix this latest issue. As for reports coming in from June 29th and prior, not sure what's going on. |
The issue cropped up for me today as well. When running python3 main.py this is the result I get: Error in function login: I then get the Rate Limit error when trying to login at locast.org. If I wait an hour then try to login again I am able do so, but if I try to run python3 main.py again I'm back to the Rate Limit error. Tried this with 2 different locast accounts before finding this thread. |
Your issue could have been introduced in the same update but sounds a bit different since ours is saying valid creds are invalid. Do you already have throttling implemented on your side? |
Interesting that it appears to be related to Captcha when I've never been prompted for Captcha on web login, but luckily that appears to be a pretty simple fix. If it ends up being that simple, do you expect you'll be able to post new Docker image relatively quickly? |
No, I don't have throttling implemented. I am using the basic locast2plex script on a Linux Mint machine, but running Emby instead of Plex. I did go through the other "Error in Function login" thread and see people talking about modifying the locast_service.py file but that file doesn't appear to exist anywhere on my system, but do have a LocastService.py file. |
FWIW, the fix listed in the other thread did not work for me |
I'd look for the the loginReq definition inside LocastService.py, file could just be renamed... |
The code edit in the other thread (#272) worked perfect for me, and now I've got my locast2plex working again. |
Mine's good too now.
|
Well, the code edit worked for a day, but now I'm back to getting the login error when trying to start locast2plex and Rate Limit when trying to login at locast.org. My guess is that its the client_id in the api call, but I'm not tech savvy enough to actually figure it out. |
Anyone else getting a "Error in function login: Not Found" when starting up locast2plex?
It just started happening out of the blue last night.
I tried other locast user id's, different computers with same result.
The id's work when I sign into locast.org and watch over the web.
The text was updated successfully, but these errors were encountered: