I am getting this error in checkout. Below the Shipping Address form, Shipping Methods is stucked on loading. In console it says:

JSON.parse: unexpected keyword at line 1 column 1 of the JSON data

process http://localhost/magento2/pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/model/error-processor.js:19
getRates   http://localhost/magento2/pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/model/shipping-rate-processor/new-address.js:65

But, when I check there is even no model folder created under http://localhost/magento2/pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js

I cleared cache and deployed static content, but it's still the same.

  • check the ajax requests. one of them might not return a valid json. – Marius Feb 12 '19 at 14:55
  • the missing js files are not really an issue. If there are no files in the pub/static folder they will be served by the php script pub/static.php. the js files mentioned in your error are located in vendor/magento/module-checkout/view/frontend/web/js/model/error-processor.js. Try to debug the json object as Marius suggested – HelgeB Feb 13 '19 at 10:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.