A
Alokaiβ€’2y ago
co0lkid02

Adding a custom API call

We are trying to create a Business unit upon the creation of the new user for that we have created a custom API extension but we are not able to execute the graphql given to the custom API extension
17 Replies
rohrig
rohrigβ€’2y ago
Hi @san123 πŸ‘‹ , which integration are you using?
skirianov
skirianovβ€’2y ago
I believe that extendApiMethods should return something yep, I was wrong, no need to return anything
rohrig
rohrigβ€’2y ago
co0lkid02
co0lkid02OPβ€’2y ago
Commercetools Integration
rohrig
rohrigβ€’2y ago
if you set a debugger, is businessUnit being called? Any errors?
co0lkid02
co0lkid02OPβ€’2y ago
I have placed a debugger for business unit still I am able to call the business unit
rohrig
rohrigβ€’2y ago
good, I see you have HttpToolkit setup there. Is the request being sent? Are you getting any errors?
co0lkid02
co0lkid02OPβ€’2y ago
In the application we are able to hit the businessUnit api but in the httptoolkit we aren't able to hit businessUnit api
rohrig
rohrigβ€’2y ago
what response are you getting here?
rohrig
rohrigβ€’2y ago
πŸ˜„ please wrap the request in a try/catch and let me know what you're getting . . .
co0lkid02
co0lkid02OPβ€’2y ago
I am not getting any responce in the console
rohrig
rohrigβ€’2y ago
But when you debug, it does go into this function?
skirianov
skirianovβ€’2y ago
Have you tested this graphQl query?
co0lkid02
co0lkid02OPβ€’2y ago
Yes
co0lkid02
co0lkid02OPβ€’2y ago
when I debug it doesn't go into the function
rohrig
rohrigβ€’2y ago
☝️ It looks like the debugger is there to me. πŸ€” Can you elaborate on what you mean?
co0lkid02
co0lkid02OPβ€’2y ago
you were previously asking to check does go into the function or not when we debug
Want results from more Discord servers?
Add your server