Shipping failure - 404 or 400 on Magento 2












1














When a user orders using a valid address any where in Massachusetts or Montana then attempts to proceed past the shipping step of the one page checkout They're hit with the following errors;



Table rates shipping method selected; (Magento native configuration)



error;



POST daad827….js:12695 POST http://livingfresh.com/rest/default/V1/guest-carts/423071982511bf7b3d3fa8a0c1e9d228/shipping-information 404 (Not Found)



Upon navigating to the link above I land on a page that states;
"This XML file does not appear to have any style information associated with it. The document tree is shown below."



<response>
<message>Request does not match any route.</message>
</response>


error comes from file;



http://livingfresh.com/pub/static/_cache/merged/daad827d0070acc6a4deedf6cf1c72ae.js



offending code in file above;



// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( options.hasContent && options.data ) || null );


When the user tries to use the express method (Magento native configuration) they get a 400 error from the same code and the same file.



Thanks.










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
    – Ankit Shah
    Sep 14 '16 at 3:51










  • I don't believe so, what would you recommend on troubleshooting this?
    – Austin Norris
    Sep 14 '16 at 14:34
















1














When a user orders using a valid address any where in Massachusetts or Montana then attempts to proceed past the shipping step of the one page checkout They're hit with the following errors;



Table rates shipping method selected; (Magento native configuration)



error;



POST daad827….js:12695 POST http://livingfresh.com/rest/default/V1/guest-carts/423071982511bf7b3d3fa8a0c1e9d228/shipping-information 404 (Not Found)



Upon navigating to the link above I land on a page that states;
"This XML file does not appear to have any style information associated with it. The document tree is shown below."



<response>
<message>Request does not match any route.</message>
</response>


error comes from file;



http://livingfresh.com/pub/static/_cache/merged/daad827d0070acc6a4deedf6cf1c72ae.js



offending code in file above;



// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( options.hasContent && options.data ) || null );


When the user tries to use the express method (Magento native configuration) they get a 400 error from the same code and the same file.



Thanks.










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
    – Ankit Shah
    Sep 14 '16 at 3:51










  • I don't believe so, what would you recommend on troubleshooting this?
    – Austin Norris
    Sep 14 '16 at 14:34














1












1








1







When a user orders using a valid address any where in Massachusetts or Montana then attempts to proceed past the shipping step of the one page checkout They're hit with the following errors;



Table rates shipping method selected; (Magento native configuration)



error;



POST daad827….js:12695 POST http://livingfresh.com/rest/default/V1/guest-carts/423071982511bf7b3d3fa8a0c1e9d228/shipping-information 404 (Not Found)



Upon navigating to the link above I land on a page that states;
"This XML file does not appear to have any style information associated with it. The document tree is shown below."



<response>
<message>Request does not match any route.</message>
</response>


error comes from file;



http://livingfresh.com/pub/static/_cache/merged/daad827d0070acc6a4deedf6cf1c72ae.js



offending code in file above;



// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( options.hasContent && options.data ) || null );


When the user tries to use the express method (Magento native configuration) they get a 400 error from the same code and the same file.



Thanks.










share|improve this question















When a user orders using a valid address any where in Massachusetts or Montana then attempts to proceed past the shipping step of the one page checkout They're hit with the following errors;



Table rates shipping method selected; (Magento native configuration)



error;



POST daad827….js:12695 POST http://livingfresh.com/rest/default/V1/guest-carts/423071982511bf7b3d3fa8a0c1e9d228/shipping-information 404 (Not Found)



Upon navigating to the link above I land on a page that states;
"This XML file does not appear to have any style information associated with it. The document tree is shown below."



<response>
<message>Request does not match any route.</message>
</response>


error comes from file;



http://livingfresh.com/pub/static/_cache/merged/daad827d0070acc6a4deedf6cf1c72ae.js



offending code in file above;



// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( options.hasContent && options.data ) || null );


When the user tries to use the express method (Magento native configuration) they get a 400 error from the same code and the same file.



Thanks.







magento2 shipping






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 13 '16 at 20:51

























asked Sep 13 '16 at 19:24









Austin Norris

7718




7718





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
    – Ankit Shah
    Sep 14 '16 at 3:51










  • I don't believe so, what would you recommend on troubleshooting this?
    – Austin Norris
    Sep 14 '16 at 14:34


















  • U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
    – Ankit Shah
    Sep 14 '16 at 3:51










  • I don't believe so, what would you recommend on troubleshooting this?
    – Austin Norris
    Sep 14 '16 at 14:34
















U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
– Ankit Shah
Sep 14 '16 at 3:51




U have created Custom module? As per it's saying u need to define Routing in Magento to Access that page.
– Ankit Shah
Sep 14 '16 at 3:51












I don't believe so, what would you recommend on troubleshooting this?
– Austin Norris
Sep 14 '16 at 14:34




I don't believe so, what would you recommend on troubleshooting this?
– Austin Norris
Sep 14 '16 at 14:34










2 Answers
2






active

oldest

votes


















0














This might happen when third-party/own modules try to add data to quote and do not consider that there must be an additional implementation for guest quotes and/or use the wrong classes.



As far as I was able to figure this out:



Use MagentoQuoteModelGuestCartGuestCartRepository for guests



And MagentoQuoteModelQuoteRepository for existing customers






share|improve this answer





























    0














    Turns out our AvaTax add-on was causing the issue, disabling it resolved the issue.




    admin panel > stores > config > sales > tax > enable AvaTax > No







    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "479"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f136139%2fshipping-failure-404-or-400-on-magento-2%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      This might happen when third-party/own modules try to add data to quote and do not consider that there must be an additional implementation for guest quotes and/or use the wrong classes.



      As far as I was able to figure this out:



      Use MagentoQuoteModelGuestCartGuestCartRepository for guests



      And MagentoQuoteModelQuoteRepository for existing customers






      share|improve this answer


























        0














        This might happen when third-party/own modules try to add data to quote and do not consider that there must be an additional implementation for guest quotes and/or use the wrong classes.



        As far as I was able to figure this out:



        Use MagentoQuoteModelGuestCartGuestCartRepository for guests



        And MagentoQuoteModelQuoteRepository for existing customers






        share|improve this answer
























          0












          0








          0






          This might happen when third-party/own modules try to add data to quote and do not consider that there must be an additional implementation for guest quotes and/or use the wrong classes.



          As far as I was able to figure this out:



          Use MagentoQuoteModelGuestCartGuestCartRepository for guests



          And MagentoQuoteModelQuoteRepository for existing customers






          share|improve this answer












          This might happen when third-party/own modules try to add data to quote and do not consider that there must be an additional implementation for guest quotes and/or use the wrong classes.



          As far as I was able to figure this out:



          Use MagentoQuoteModelGuestCartGuestCartRepository for guests



          And MagentoQuoteModelQuoteRepository for existing customers







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 17 '16 at 8:38









          EssGee

          7618




          7618

























              0














              Turns out our AvaTax add-on was causing the issue, disabling it resolved the issue.




              admin panel > stores > config > sales > tax > enable AvaTax > No







              share|improve this answer




























                0














                Turns out our AvaTax add-on was causing the issue, disabling it resolved the issue.




                admin panel > stores > config > sales > tax > enable AvaTax > No







                share|improve this answer


























                  0












                  0








                  0






                  Turns out our AvaTax add-on was causing the issue, disabling it resolved the issue.




                  admin panel > stores > config > sales > tax > enable AvaTax > No







                  share|improve this answer














                  Turns out our AvaTax add-on was causing the issue, disabling it resolved the issue.




                  admin panel > stores > config > sales > tax > enable AvaTax > No








                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 23 '18 at 18:24









                  Rohan Hapani

                  5,85721662




                  5,85721662










                  answered Sep 14 '16 at 15:19









                  Austin Norris

                  7718




                  7718






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f136139%2fshipping-failure-404-or-400-on-magento-2%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      1300-talet

                      1300-talet

                      Display a custom attribute below product name in the front-end Magento 1.9.3.8