Urgent: 2.0.1 re-connection causes error
-
Installed 2.0.1 update. Went to disconnect and re-connect to Square. Entered Square credentials and got to the Permissions page. From there, clicking the “submit” button results in red “An error has occurred” message.
JS console looks like this from the onclick:
Failed to load resource: the server responded with a status of 403 (Forbidden)
/oauth2/flow/deny:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
2/oauth2/flow/authorize:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
2application-0b64810ce47857f123bd2fd755f1eb16.js:2 POST https://squareup.com/oauth2/flow/authorize 401 (Unauthorized)Really super bad timing. In the middle of processing many orders. Can’t be more frustrated. Please help.
Here’s the debug log:
07-25-2019 @ 17:35:50 – Starting upgrade to v2.0.0
07-25-2019 @ 17:35:50 – Migrating plugin settings…
07-25-2019 @ 17:35:50 – Plugin settings migration complete.
07-25-2019 @ 17:35:50 – Migrating gateway settings…
07-25-2019 @ 17:35:50 – Gateway settings migration complete.
07-25-2019 @ 17:35:50 – Migrating orders data…
07-25-2019 @ 17:35:50 – Orders migration complete.
07-25-2019 @ 17:35:50 – Migrating products data…
07-25-2019 @ 17:35:51 – Products migration complete.
07-25-2019 @ 17:35:51 – Migrating customer data.
07-25-2019 @ 17:35:51 – 0 customers migrated
07-25-2019 @ 17:35:51 – Upgrade to v2.0.0 complete
07-25-2019 @ 17:36:41 – Disconnected due to invalid authorization
07-25-2019 @ 17:36:41 – Request
Request
method:
uri: listLocationsWithHttpInfo
user-agent: WooCommerce-Square/2.0.1 (WooCommerce/3.6.5; WordPress/5.2.2)
headers: Array
(
)
body:
duration: 0.41962s07-25-2019 @ 17:36:41 – Response
Response
code: 401
message:
headers: Array
(
[0] => HTTP/1.1 401 Unauthorized
[Content-Type] => application/json
[Vary] => Origin, Accept-Encoding
[X-Content-Type-Options] => nosniff
[X-Download-Options] => noopen
[X-Frame-Options] => SAMEORIGIN
[X-Permitted-Cross-Domain-Policies] => none
[X-Xss-Protection] => 1; mode=block
[Date] => Thu, 25 Jul 2019 17:36:41 GMT
[keep-alive] => timeout=60
[Strict-Transport-Security] => max-age=631152000
[content-length] => 203
)
body: Array
(
[errors] => Array
(
[0] => stdClass Object
(
[category] => AUTHENTICATION_ERROR
[code] => ACCESS_TOKEN_EXPIRED
[detail] => The provided OAuth access token has expired. You must renew the access token via the Renew Access Token endpoint.
))
)
07-25-2019 @ 17:36:41 - Could not retrieve business locations.
- The topic ‘Urgent: 2.0.1 re-connection causes error’ is closed to new replies.