Auto-connect fails: API returns 401 “Unauthorized.”
-
Hi threadi,
plugin 1.1.4 on WordPress 7.1.2 / PHP 8.3, ProvenExpert Premium account. Auto-connect never completes. I traced it:
- The callback
/provenexpertplugin/<hash>/?pluginId=…&setupToken=…&clientId=…reachesSetup::check_for_setup_returnfine (rewrite rule and query var are registered). Api::connect()then POSTs{"setupToken":…}tohttps://www.provenexpert.com/restapi/v1/plugins/<pluginId>/connectand gets HTTP 401{"status":"error","errors":["Unauthorized."]}, no WWW-Authenticate header. Logged 6 times on 21/22 Sep 2026 inwp_provenexpert_logs.- Outbound HTTP works, no
http_request_args/pre_http_requestfilters touch provenexpert.com.
One thing I noticed in
Request::send(): the body is JSON-encoded but noContent-Type: application/jsonheader is set, so WP sends it as form-urlencoded. Could that be what the connect endpoint rejects? Or does the endpoint require something else (Basic auth, clientId)?I’ve also contacted ProvenExpert support with the pluginId. Happy to test a patch.
Thanks!
- The callback
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.