"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
  • 2313 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

Admin UI SDK, as you said, allows the customization of the Adobe Commerce Admin Panel through extension points registered in the App Builder application. For local testing, when the application is running locally, the commerce instance should be running locally and a local server should be up and running. Additionally the config of Admin UI SDK in the commerce instance should be adjusted (Stores -> Settings -> Configuration -> Adobe Services -> Admin UI SDK). 

Here's a link to the documentation with details on the above description: https://developer.adobe.com/commerce/extensibility/admin-ui-sdk/configuration/

If your customization is not displayed, you can always check the logs in your Commerce instance to check if there's an error related to loading registrations from App Registry. You can run the following command: 

more ./var/log/system.log | grep -i "Admin UI SDK"

Can you please specify where the Test Connection button is located as Admin UI SDK doesn't rely on a Test Connection button?