Cannot connect anymore with api

I hope someone can help me. I designed a Python script to be able to add metadata to videos are not movies or series. it’s a script that works with plex metadata Stash json metadata, ember media manager nfo metadata. i want to clasified my videos and create libraries to my liking i have been working with this for a few days it works great with plexbut today i started to get this message >>> %Run tagmp41.py
Erreur de connexion Plex : (401) unauthorized; http://127.0.0.1:32400/ Unauthorized

401 Unauthorized

.I tried lots of ways i changed my token itried everything and i am going crazy. If anyone could help to find the cause of all this, it would be appreciate.

(tagmp4comb) C:\Users\vincy>cd /d D:\Python\tagmp4 && python tagmp41.py
Erreur de connexion Plex : (401) unauthorized; http://127.0.0.1:32400/ Unauthorized

401 Unauthorized

I assume that your script has an X-Plex-Token in either the header or the url

Have you verified the token is still valid?

i fif, i even change pw to get a new one, and got the same result…

Then show me the url it’s calling, but scramble the token

I have started to encounter a similar error. While I can retrieve information using the web API with URLs such as:
http://10.0.1.3:32400/status/sessions
As of a week or so ago, whenever I attempt to send a command to a player like the one below through the API, I only receive a 404 response.
http://10.0.1.3:32400/player/playback/pause?type=music&commandID=1&Plex-Token={{Plex-Token}}

(X-Plex-Target-Client-Identifier is defined in the request header.)

This functionality has been restored for me in version 1.32.8.7639 as discussed over here.