• Resolved stivenson2005

    (@stivenson2005)


    Hello,

    I have an issue with the Klarna Checkout plugin where if I update it to the latest version it gets an error upon checkout.

    {“error_code”:”READ_ONLY_ORDER”,”error_messages”:[“Resource is read-only”],”correlation_id”:”8e95a5c4-8fd8-40fd-ba6e-56130a5054c6″,”service_version”:”1.0.20200414071037″} Resource is read-only

    If i roll back to the version 1.11.7 it works just fine, but the problem is today i got an email from Klarna stating i have to update to the latest version or else they will have to stop my Klarna services for my store in 48h.

    So i updated to the latest Klarna checkout plugin and still receiving the same issue. Any suggestions is appreciated.

    Note that I run the latest WP and WC updates and the theme aswell which is Astra and on another website i run Storefront which both facing the same exact issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • @stivenson2005 @klarna Is that error related to some specific versions?

    Plugin Author Kristi at Klarna

    (@klarna)

    Hi @sirrahikkala
    Yes, the READ_ONLY_ORDER error is more applicable for some Woo KCO plugin versions than others. (For reference, see documentation for Woo KCO 2.x version at https://docs.krokedil.com/article/329-klarna-checkout-checkout-flow-rewrite)

    That said, please also reference this comment from https://www.ads-software.com/support/topic/error-code-read-only/#post-12689535

    as hopefully that might help you resolve the error for your store still with the latest Woo KCO 2.x plugin version.

    I am facing the same error:

    Accept: */*
    Klarna-Correlation-Id: 2b645492-57e9-4d11-b376-5eb6d5bfcf1d
    User-Agent: WordPress/5.4; https://siteurl.com - WooCommerce: 4.0.1 - KCO:2.0.12 - PHP Version: 7.0.29 - Krokedil
    Host: api.playground.klarna.com
    Accept-Encoding: deflate, gzip
    Content-Length: 1904
    Content-Type: application/json

    Response Body:

    {
      "error_code": "READ_ONLY_ORDER",
      "error_messages": [
        "Resource is read-only"
      ],
      "correlation_id": "2b645492-57e9-4d11-b376-5eb6d5bfcf1d",
      "service_version": "1.0.20200603144343"
    }

    Tried several ways like back-n-forth of the plugin : Klarna Checkout for WooCommerce still can’t resolve.

    Any idea?

    Plugin Author Kristi at Klarna

    (@klarna)

    Hi @rumaneee – can you please retest using the most recent version of the KCO plugin (v2.0.14 instead of 2.0.12) to see if that might resolve the issue? https://github.com/krokedil/klarna-checkout-for-woocommerce/releases/tag/2.0.14

    Hi @klarna,
    As I said I also tested KCO old version as well as with the latest version.

    Accept: */*
    Klarna-Correlation-Id: 6bf590db-bda5-45ad-b65e-bf5b1730d08b
    User-Agent: WordPress/5.4; https://***.com- WooCommerce: 4.0.1 - KCO:2.0.14 - PHP Version: 7.0.29 - Krokedil
    Host: api.playground.klarna.com
    Accept-Encoding: deflate, gzip
    Content-Length: 1864
    Content-Type: application/json

    And here is the same response body:

    {
      "error_code": "READ_ONLY_ORDER",
      "error_messages": [
        "Resource is read-only"
      ],
      "correlation_id": "6bf590db-bda5-45ad-b65e-bf5b1730d08b",
      "service_version": "1.0.20200603144343"
    }

    After 30 hours of digging, I found that this problem persists only on the Nginx server not in the Apache2 server.

    When I switched my server from Nginx to Apache2 then that error vanished and everything working as I expected.

    I hope someone can provide how to resolve this on the Nginx server.

    Plugin Contributor Krokedil

    (@krokedil)

    Thanks for the information and followup on this @rumaneee.

    I hope this can be helpful for others. However, I don’t think this is a general Nginx issue. I think it might be a case of web server configuration problem. We have other users running Nginx without any issues.

    Hi,

    some of our client’s clients have reported this issue. Our client has been in contact with Klarna directly, but they could not offer much help.

    • WC v. 4.3.1
    • KCO v. 2.1.3

    When testing for myself, I did not have an issue with an admin account, but got the error when ordering as a guest in an incognito window.

    {
      "ERROR_CODE": "READ_ONLY_ORDER",
      "ERROR_MESSAGES": ["RESOURCE IS READ-ONLY"],
      "CORRELATION_ID": "86563E68-005E-4372-A9AD-DCAD97218F93",
      "SERVICE_VERSION": "1.0.20200806112428"
    }

    I got success email notifications for both orders.

    Plugin Author Niklas H?gefjord

    (@niklashogefjord)

    Hi @sarcastrobatics,
    Thanks for the correlation ID. We have followed up with Klarna about this. It looks like the last redirect, where the customer should be redirected to the confirmation step (where the order is finalized in Woo) and then to the thank you page is note executed as it’s supposed to do.

    In Klarna’s logs the http response for the redirect is 307. This indicates that everything was ok. But the READ_ONLY_ORDER indicates that the customer was not redirected to the thank you page, instead they reloaded the checkout page. With the order already payed for, Klarna shows an error message instead.

    This is an issue that is tough to reproduce, but we will try to see if we can fixe this type of edge case.

    Hi/hej!

    I’m having the same issue. From what i have gathered it might be because I am running test from a “staging.domain.com” kinda situation. When the checkout fails i get redirected to domain.com and the {“error_code”:”READ_ONLY_ORDER”,”error_messages”:…. is displayed in orange.

    Running Version 2.1.3 & 1.5.4

    Could this be caused by the staging.domain.com redirected to domain.com after the initial purchase phase?

    Thanks in Advance

    Plugin Author Niklas H?gefjord

    (@niklashogefjord)

    Hi, yes, that might cause a behavior like this.

    Plugin Author Kristi at Klarna

    (@klarna)

    To more gracefully handle this error, even though there can still be different root causes of the READ_ONLY_ORDER error, v2.1.4 of the Woo KCO plugin released today has an update to redirect customer to thankyou page if response to an update request returns a READ_ONLY message from Klarna.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘error_code”:”READ_ONLY_ORDER’ is closed to new replies.