"statusCode": 500, "message": "Internal server error" while fetching menuitems | Community
Skip to main content
Level 3
August 8, 2024
Question

"statusCode": 500, "message": "Internal server error" while fetching menuitems

  • August 8, 2024
  • 2 replies
  • 2306 views

i am trying to add app menu at  adobe admin through adobe app builder.Now i am hitting API to get menu items but i am getting this error . i filled each header value correctly.

here is details

API -https://aemx-mngr.adobe.io/v1/extensions?extensionPoints=commerce/backend-ui/1

 

headers-

self::HEADER_ACCEPT => self::HEADER_VALUE_APPLICATION_JSON,
self::HEADER_AUTHORIZATION => 'Bearer ' . $this->config->getIMSToken(),
self::HEADER_X_ORG_ID => $this->config->getOrganizationId(),
self::HEADER_X_API_KEY => 'aemx-mngr-adobe-commerce'
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 8, 2024

Hi, 

Can you check the logs? Can you post the whole trace?

Esteban Bustamante
Level 3
August 9, 2024

i am hitting API through Postman and it is showing internal server error ,logs file generated by the admin commerce ,can you please elaborate which logs you are taking about.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 9, 2024

Oh sorry, i didn't catch that you were using POSTMAN, is there any further info along with the 500 error? 

Esteban Bustamante
asalloum
Adobe Employee
Adobe Employee
August 12, 2024

Hello,

 

Happy to help on this.

Can you please give more context on what you're trying to achieve with this? Where will these menu items be displayed or fetched? 

 

Can you also please share some details on how menu items are registered in your app builder application?

 

Quick note: App builder registrations will not be accessible through `aemx-mngr.adobe.io`.

 

Thanks,

Level 3
August 14, 2024

i am beginner so correct me if i am wrong
we are integrating adobe commerce with the adobe app builder. admin-ui-sdk allow app builder developer to extend commerce admin with custom menu and pages. configure the commerce-backend-uix module through composer.which help us for the local testing . where we set the host URL of the adobe app builder .local testing of admin-ui-sdk tells us that our commerce has successfully integrated with adobe app builder are not .when we click on test connection button at admin commerce it hit the adobe menu API to fetch the menu-items...

asalloum
Adobe Employee
Adobe Employee
August 14, 2024

Then how we will able to verify that our adobe app builder is connected to adobe commerce


Admin UI SDK will be using the Adobe Admin IMS to connect with App Registry securely where your application is registered. On a local instance, the mock server will be used. In a cloud instance this connection is done by enabling the Adobe Admin IMS module in commerce, linking it correctly to your organization. 

More details of IMS and Commerce for Admin UI SDK: https://developer.adobe.com/commerce/extensibility/admin-ui-sdk/installation/#adobe-commerce

More details on how to prepare your application for production: https://developer.adobe.com/commerce/extensibility/admin-ui-sdk/publish/