This topic contains 3 replies, has 2 voices, and was last updated by Martin 6 years, 9 months ago.
- Topic
Hi,
i’ve maybe found a bug in the oro api.
Initial situation:
Open Opportunity with assigned Account and B2B-Customer. For the Sales System, we need the current B2B Customer ID, so we can query the api for ship and bill address. System: Oro 2.0.0 on Ubuntu Linux.When:
Trying to query the api for the b2b customer id, assigned within the opportunity.What Happens:
Error 500 in Sandbox mode (Valid Opportunity Id provided)Expected Behaviour:
Json Response, containing b2b customer id.Nevertheless, a possible workaround is to submit a get request against /api/opportunities, setting a filter on the opportunity.
Logs:
— oroprod.log —
12[2017-06-26 17:12:52] api.ERROR: The execution of "oro_api.validate_normalized_result_exists" processor is failed. {"exception":"[object] (Oro\\Bundle\\ApiBundle\\Exception\\RuntimeException(code: 0): The result does not exist. at /var/www/html/vendor/oro/platform/src/Oro/Bundle/ApiBundle/Processor/Shared/ValidateNormalizedResultExists.php:20)"} [][2017-06-26 17:12:52] request.CRITICAL: Uncaught PHP Exception Oro\Bundle\ApiBundle\Exception\RuntimeException: "The result does not exist." at /var/www/html/vendor/oro/platform/src/Oro/Bundle/ApiBundle/Processor/Shared/ValidateNormalizedResultExists.php line 20 {"exception":"[object] (Oro\\Bundle\\ApiBundle\\Exception\\RuntimeException(code: 0): The result does not exist. at /var/www/html/vendor/oro/platform/src/Oro/Bundle/ApiBundle/Processor/Shared/ValidateNormalizedResultExists.php:20)"} [–api result —
Response Header12345678500 Internal Server ErrorDate: Mon, 26 Jun 2017 15:12:51 GMTCache-Control: no-cacheServer: Apache/2.4.18 (Ubuntu)Connection: closeContent-Length: 46Content-Type: application/jsonResponse Body
1234{"code": 500,"message": "Internal Server Error"}Kindly Regards
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.