Noch eine Idee: Irgendwelche besonderen Sonderzeichen im Passwort? Zum Beispiel ein , oder ein ;
sorry I forgot I had to change my script too because of special characters in the password! I should have shared it and forgot:
see the change I made here:
support Passwords with special characters (encode for URL) by chriscatuk · Pull Request #4 · marco79cgn/ios-scriptable-widgets
Password with special characters like & were failing
github.com
see if adding those
encodeURIComponent(userName) and encodeURIComponent(password) fixes your issue. My API user password was starting with a '&' and it didn't like that at all.