magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Rest Api for post method not working in Magento 2.1.3? #18332

Closed devqualwebs closed 6 years ago

devqualwebs commented 6 years ago

Preconditions

  1. Installed Magento v.2.1.3, setup multistore and created custom checkout page to place order using rest Api..
  2. Trying to get shipping rates for guest customers and logged in customers using rest Api.

Steps to reproduce

  1. Using https://mywebsiteurl/index.php/rest/english/V1/carts/mine/estimate-shipping-methods for logged in users.

  2. https://mywebsiteurl/index.php/rest/english/V1/guest-carts/:cartId/estimate-shipping-methods for guest users. I'm using these parameters for estimate shipping. {"address":{"region":"Queensland","country_id":"AG","street":["203 FA",""],"postcode":"4073","city":"test treet","firstname":"test","lastname":"test","email":"test221@mailinator.com","telephone":"7896541230","same_as_billing":"1"}}

  3. Tried any other Api for post methods. For Ex. /V1/carts/:cartId/billing-address , /V1/guest-carts/:cartId/billing-address. and suitable payloads for respected Api endpoints.

Expected result

  1. /V1/carts/mine/estimate-shipping-methods should return shipping rates for logged in users.
  2. /V1/guest-carts/:cartId/estimate-shipping-methods should return shipping rates for guest users.
  3. /V1/carts/:cartId/billing-address should resturn saved billing address id.

Actual result

  1. All post methods return this error. "message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5bb226799163a".

However, I'm getting the user authentication token and admin authentication token using post method. And it's working fine. But other Api endpoints are not working. and giving such errors. Also I've tried to search "5bb226799163a" inside /var/report/ folder. But nothing found related to this.

magento-engcom-team commented 6 years ago

Hi @devqualwebs. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop). For more details, please, review the Magento Contributor Assistant documentation.

@devqualwebs do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

okorshenko commented 6 years ago

@magento-engcom-team give me 2.2.6 instance

magento-engcom-team commented 6 years ago

Hi @okorshenko. Thank you for your request. I'm working on Magento 2.2.6 instance for you

magento-engcom-team commented 6 years ago

Hi @okorshenko, here is your Magento instance. Admin access: https://i-18332-2-2-6.engcom.dev.magento.com/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

magento-engcom-team commented 6 years ago

Hi @engcom-backlog-nazar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

ghost commented 6 years ago

Hi @devqualwebs Thank you for you report,only 2.2.0+ bug reports are considered nowadays. Try upgrading. I'm not able to reproduce following steps your described. Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this issue. The GitHub issue tracker is intended for Magento Core technical issues only.