Build log is full of `[Pipeline] // withCredentials` but secrets show as `****` inside curl output; the API rejects them.
IntermediateTroubleshootingJenkins Credentials, Plugins and Controller Issues
Answer
Likely causes → Token contains trailing newline or whitespace copied into the credential; wrong secret type.
Diagnose → printf '%s' "$TOKEN" | wc -c and | od -c.
Fix → Re-create the credential without trailing newline; use Secret text for tokens.
Prevent → Add a token validity check as the first step.
More on Jenkins Credentials, Plugins and Controller Issues
`ERROR: Could not find credentials entry with ID 'docker-hub'`.BeginnerJenkins UI shows `HTTP ERROR 403 No valid crumb was included in the request`.BeginnerAfter upgrade, Jenkins shows `Jenkins failed to start` and logs `Failed Loading plugin ... Plugin is missing: ...`.AdvancedJenkins is extremely slow; the UI times out; thread dump shows many blocked threads.Advanced`java.lang.OutOfMemoryError: Java heap space` on the controller.Intermediate`No such property: env for class: groovy.lang.Binding` in a shared library.Advanced