-
Notifications
You must be signed in to change notification settings - Fork 2
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
Errors occurred while processing request #6
Comments
From the error message it seems like the URL may not be correct. Make sure you include the port number in the URL if applicable for your PMS configuration. You'll know the URL is correct by using it in your browser. It should open up PLEX. |
The url is the default one, localhost at the default 32400 port, when copying it to a web browser it does open the Plex web page too |
I was just thinking that and realizing that I hadn't put in any logging. I will make that update. The only thing shown to the user is the exception message which, in this context, isn't all that helpful. |
…orm and populate form with that information when application is relaunched. Added a logger.
Release 1.1.0.0 adds ability to write more detailed error information to log. |
Logs and the JSON used to load the form will be located here: (adjust for your username) |
Cant it just save the data when you input it on the screen?
From: gregchak ***@***.***>
Sent: Tuesday, May 17, 2022 5:50 PM
To: gregchak/plex-playlist-import ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [gregchak/plex-playlist-import] Errors occurred while processing request (Issue #6)
Logs and the JSON used to load the form will be located here: (adjust for your username)
C:\Users\{username}\AppData\Local\Packages\ChakFrost.PlexPlaylistImport_{letters and numbers}\LocalState\previousInput.json
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLNCFORPMOHCDJER2PT4JDVKQ5CZANCNFSM5VM5PUAA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Sorry for the confusion @morpheus5150 , I was trying to answer a couple of your questions in 1 response. As mentioned above, that is the path for the logs and where the previous inputs are stored. The application should be loading the data that is in the |
I did an import and it did not create the file
…________________________________
From: gregchak ***@***.***>
Sent: Wednesday, May 18, 2022 10:26:24 AM
To: gregchak/plex-playlist-import ***@***.***>
Cc: morpheus5150 ***@***.***>; Mention ***@***.***>
Subject: Re: [gregchak/plex-playlist-import] Errors occurred while processing request (Issue #6)
Sorry for the confusion @morpheus5150<https://github.com/morpheus5150> , I was trying to answer a couple of your questions in 1 response.
As mentioned above, that is the path for the logs and where the previous inputs are stored. The application should be loading that data that is in the previousInputs.json file when it starts if the file is there. Check that location and see if the previoiusInputs.json file is there. If its not there then there's nothing for the application to read. The file will be written when you click the Import button. In addition if the import fails then logs should be written into the same directory. So try another import and check that directory for those files. If those files are not written then there's either a permission issue or somehow you have the wrong version. I'll double check the package to make sure its 1.1.0.0
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLNCFPKCXYQ6RD44EYH3KDVKUR4BANCNFSM5VM5PUAA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Did you check the version number? Were logs created? |
I got it working…was using old version
From: gregchak ***@***.***>
Sent: Wednesday, May 18, 2022 1:14 PM
To: gregchak/plex-playlist-import ***@***.***>
Cc: morpheus5150 ***@***.***>; Mention ***@***.***>
Subject: Re: [gregchak/plex-playlist-import] Errors occurred while processing request (Issue #6)
Did you check the version number? Were logs created?
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLNCFMTA32DGRZNWPSPMVLVKVFPZANCNFSM5VM5PUAA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
I'm having the same issue. What's in my log is below. OS is Windows 10, fresh plex install. 2022-06-23 14:37:40.011 -04:00 [ERR] Errors occurred while processing request. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Exception: The text associated with this error code could not be found. A connection with the server could not be established at System.Net.Http.HttpHandlerToFilter.SendAsync(HttpRequestMessage request, CancellationToken cancel) |
It looks like the application is not able to connect to PLEX. Its unclear if its something like the URL that is incorrect or if PLEX is denying the request. But I would recheck all your settings. When it comes to connecting to PLEX it either works or it doesn't. And if it doesn't its usually something in the values that have been specified that is incorrect. You may also want to check and see if you are specifying |
If you receive a 500 server error back, it is helpful to check the Plex Console to see what may have happened during the processing of the playlist file. To view the console, look under settings, in the manage sub section, you'll find the Console link. |
Hi, I have exactly the same error message and log file output as torin101 above. I've spent several hours double and triple checking everything I can think of. There's no errors in the Plex Console, I guess it just isn't getting that far. I've tried https, I've tried the actual URL, etc. I've even tried adding the URL to "List of IP addresses and networks that are allowed without auth" within the Plex settings. It's worth noting it takes 5-10 seconds to fail. Like it's trying... and then giving up? I'm out of ideas, any suggestions please? I really need this application to work! :( |
@VyoletSky if you're getting the same error of |
@gregchak Thanks for replying. So get this... My Plex media server is running on a dedicated mini PC (Intel NUC for low power consumption). I do have public/remote access setup and the port forwarding rule for it, and Plex reports "Fully accessible outside your network" and all ok. I've been trying to run the Playlist Importer on that mini PC, which to me, seemed sensible. It's not even going "across" the network that way (or is it??) But I tried your suggestions of disabling firewall and anti-virus, still no joy. In a moment of "let's try something irrational" I installed the Playlist Importer on my main PC and ran it from there with the URL for the mini PC and still using the m3u file saved on the mini PC - it worked perfectly! I do not understand this at all, do you have any ideas why Plex will not accept the connection from the same PC that the media server is running on??? But I'm very happy it's working via a different route. Your app is awesome, thank you! |
@VyoletSky Well I'm glad its working, but I'm not sure why it isn't able to run on your NUC. I've never used a NUC so I don't know if there's any sort of extra localhost protections it has set up. I can say that when I first developed this app I was running everything on the same computer and it worked well. To your point, running everything locally should remove some of those network connection issues, but you proved that is not the case. The error you posted says unable to connect so I have no reason to believe that is not the issue. I just don't understand why, in your set up, it would not be able to. |
There is no JSON file or anything else in that folder…any ideas?
From: gregchak ***@***.***>
Sent: Tuesday, May 17, 2022 5:50 PM
To: gregchak/plex-playlist-import ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [gregchak/plex-playlist-import] Errors occurred while processing request (Issue #6)
Logs and the JSON used to load the form will be located here: (adjust for your username)
C:\Users\{username}\AppData\Local\Packages\ChakFrost.PlexPlaylistImport_{letters and numbers}\LocalState\previousInput.json
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLNCFORPMOHCDJER2PT4JDVKQ5CZANCNFSM5VM5PUAA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Issue here, "Errors occurred while processing request ". Sending logs. {"url":"http://localhost:32400/","token":"Tty5pdyMBRiPRTmQYNQ7","sectionId":3,"path":"F:\\Zene\\zene2\\zene\\Balint Playlist.m3u"} |
Also having inital connection / initial import problem. |
After looking at the logs it looks like the import tool is trying to connect to Plex at the URL specified (http://127.0.0.1:3240/) but it is unable to establish a connection. This is typically the case when the URL is incorrect or there is something blocking it. In addition you may want to make sure that your Plex isn't set up for HTTPS connections only. With the URL set to localhost I am assuming that you are running this import tool from the same computer that you are running Plex. Is that correct? You may want to check your firewall rules too to ensure that 32400 both inbound and outbound are allowed. Since you are running Plex on this same computer I would assume 32400 is allowed inbound, but possibly not outbound, or possibly not in the right network type; i.e. private vs. public. That's where I would start the troubleshooting. No config is needed in your router since all of this local not only to your network but to your computer. |
Plex can allow connections to http or https; tested both as good. |
I am running the import tool on a Windows Computer with Plex installed on a
NAS.
…On Tue, Jan 2, 2024 at 11:06 AM BrightApollo ***@***.***> wrote:
After looking at the logs it looks like the import tool is trying to
connect to Plex at the URL specified (http://127.0.0.1:3240/) but it is
unable to establish a connection. This is typically the case when the URL
is incorrect or there is something blocking it.
Plex can allow connections to http or https; tested both as good.
ESET firewall disabled, no Windows Defender configuration active, still no
good.
I've ruled out firewall and basic netowrking issues. Is there a DEBUG mode
I can try?
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJF7NNQFW6D3C4QI5NV2TJLYMQV7PAVCNFSM5VM5PUAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBXGQZDEMJSGI4Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@BrightApollo Try to connect to the API via your browser by using this link: |
<script/> Connects, no issue. I was able to load the playlist using a REST extension for FF and the Plex API; I still want your tool to work though. |
<script/> Mind walking me through how you did that? (Rest extension). I'm also able to get that link to work but not this Tool. So I'd like to see if I'm able to get an m3u in somehow. |
Happy to help. I use FF.
Believe it or not, that works. |
Before I try, I've been setting my section ID to 1. But you're saying 9 is the default for music? I got it using the instructions that state to look in the xml of the music library item (same one I got my Plex Token from). |
Try yours, then mine. Whatever works. Maybe it's sequentially numbered and my music section was the ninth one it added; Plex is not designed well from a data architecture standpoint at all so anything could be true. |
you tried sectionID=9 as well? |
throw your playlist at the root of the drive. |
Just right in C:\ ? |
your playlist entries are relative and not absolute.try prefixing a few and see if they go |
Okay, let's skinny this wayyyyy down. You should have an analogous format for your M3u file containing one song. This should work, as it is a base case. My Plex Server level is Version 1.32.8.7639 using Web Version 4.116.1 If this still fails I am out of ideas for the moment. |
So you're saying put the song and playlist right in C:? But how would Plex identify that song since the music library doesn't extend to C:? Also what does the #EXTINF number mean and how would I derive that? |
Right now all we are trying to see is if the Plex API will process a basic M3U referencing one song / entry, and we want these two files to be "seen" by Plex in the most simplistic way. |
@BrightApollo I can't speak for everyone else's experiences but I found a way to make it work. I loaded my playlist into VLC media player, and then saved that to m3u. VLC includes %20 instead of spaces, which seems to be what made plex like my input? Here's an excerpt. I got it to load playlists with hundreds of entries no issue. It's convulated, but it works!
|
it's not stupid if it works! I'm glad my setup doesn't require escape characters. Good tip to remember. |
@gregchak now that we have established that my system is setup correctly and it does work when using POST + PlexAPI, what else should we try to get your solution working? Do you have a DEBUG version available that I can install, then ship logs to you? Anything instrumented I can check? -C |
Breathing some life in to this relatively old thread. I've installed the Plex Importing applicaiton/tool/whatever. I'm pretty sure it was a successful install as new directories/files have been installed in C:\Users\xxxxxxxx\AppData\Local\Packages\ChakFrost.PlexPlaylistImport_eghgkf1r4f9kp. Following some of the hints in this thread, I know I'm connecting to the Plex server from my Win10 PC. The server is sitting on a Synology NAS and the server was a package provided by Synology. Via Firefox, this connects and show an XML. It also shows the plex logo on the broswer tab's favicon: Never having worked with a PowerShell script before, I feel good that I was able to install it. But I can not figure out how to actually run the importing application/tool. Any and all help would be greatly appreciated. I feel if I can get it launched I should be damn close to getting my playlists imported. Thanks. |
Hi! I just discovered this program and I'm trying it for the first time
So I could install it properly, launched it and filled in all the data, but when I try to import the playlist it just doesn't work.
It gives me the following error
"Errors occurred while processing request. An error occurred while sending the request"
The path to playlist file is an absolute path starting with my drive letter. All the lines in the .m3u are also structured like this, for example
E:\Music\Animu\IDOLM@STER\Cinderella Master\[2020-2020] STARLIGHT MASTER GOLD RUSH\[2020.09.16] THE IDOLM@STER CINDERELLA GIRLS STARLIGHT MASTER GOLD RUSH! 01 Go Just Go! [COCC-17831]\02.Go Just Go! (M@STER VERSION) 夢見りあむソロ・リミックス.mp3
The text was updated successfully, but these errors were encountered: