1

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 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 at 10:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.