• Resolved ivypublications

    (@ivypublications)


    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.41962s

    07-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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ivypublications

    (@ivypublications)

    Here is 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.41962s

    07-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.

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hey @ivypublications,

    Have you tried again to reconnect the plugin to your Squareup account? I’ve tried to reproduce this after updating to 2.0.1 but reconnecting isn’t a problem for me.

    Please contact us at WooCommerce.com > My Account > Tickets. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    We’ve heard reports that some users are unable to reconnect to Square after disconnecting. We think it may be due to your Square user account not having the proper permissions to authorize the app. The user you log in with will likely need Full Permissions to authorize the app. It may even require logging in as the OWNER of the Squareup account. When connecting WooCommerce to Square, try logging into a Squareup user account which has the proper permissions:

    https://squareup.com/help/us/en/article/6316-add-an-administrator-or-authorized-representative

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @ivypublications – We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Urgent: 2.0.1 re-connection causes error’ is closed to new replies.