While making a api request in developer portal i am getting an internal error has occured,WHY?

Not applicable

While requesting my Api from dev protal with necessary required parameters and then while i am sending the reqest the response i get is "internal error has occurred ".why?

Solved Solved
1 10 454
1 ACCEPTED SOLUTION

Dear @Karthiknayak,

The error could've occurred for various reasons. You need to check what is the possible cause for that and see if it can be fixed. I would suggest you to do the following:

  1. From the DevPortal menu options, go to Report -> Recent log messages and see if you can find any error details for the API request made by you.
  2. If you do see anything, then see if you can fix that issue.
  3. If you don't see any error, then do the following:
    • Get on to your smartdocs org in Edge UI
    • Select the smartdocs API
    • Go to Trace Tab and start the trace
    • Run the API call from DevPortal and see if you can get the trace for the API request and find more information.
  4. If you don't get the trace information for the API request, then you can check on your router configured for smartdocs org as follows:
  • Run the API call as follows:
  • curl -v http://<IP address of your Router>:59002/smartdocs/v1/sendrequest?targeturl=<URL of your actual API request>
  • If you get any errors, then check if the router is listening on port 59002.

Thanks,

Amar

View solution in original post

10 REPLIES 10

Dear @Karthiknayak,

The error could've occurred for various reasons. You need to check what is the possible cause for that and see if it can be fixed. I would suggest you to do the following:

  1. From the DevPortal menu options, go to Report -> Recent log messages and see if you can find any error details for the API request made by you.
  2. If you do see anything, then see if you can fix that issue.
  3. If you don't see any error, then do the following:
    • Get on to your smartdocs org in Edge UI
    • Select the smartdocs API
    • Go to Trace Tab and start the trace
    • Run the API call from DevPortal and see if you can get the trace for the API request and find more information.
  4. If you don't get the trace information for the API request, then you can check on your router configured for smartdocs org as follows:
  • Run the API call as follows:
  • curl -v http://<IP address of your Router>:59002/smartdocs/v1/sendrequest?targeturl=<URL of your actual API request>
  • If you get any errors, then check if the router is listening on port 59002.

Thanks,

Amar

Thank you so much for your valuable information,i will check it out and will get back to you soon.

I tried to locate smartdocs org in Edge UI,but i could not find it in Edge account.May be because my edge is a free account and developer portal is one month trail peroid.

Can you please tell how can i get the smart doc option in Edge ?Could you also point out any documentation that could help me in solving this error.

@Karthiknayak,

I presumed that you were seeing the issue in your Private Cloud setup and suggested the above instructions. If you are on a trial org public cloud account, then you will not have the smartdocs org. Instead there will be another org "apiconsole". Not sure if you will have access to this org. I can check it for you.

Can you please share your org name and developer portal link ?

ok sure,this my org name warriera.and my dev portal link http://dev-warriera.devportal.apigee.com.

@Karthiknayak , Can you please let me know your portal url / org name ? I can help you debug same.

ok sure,this my org name warriera.and my dev portal link http://dev-warriera.devportal.apigee.com.

@Karthiknayak , In general, I see PetStore API working in your smartdocs. I don't think it's issue with portal / edge. I doubt it's more of the API Model you have created. Can you pinpoint the smartdocs page that gives above error ?

I am sending the screenshoot ,where i am getting the error in dev portal.

2995-screenshot-from-2016-06-23-181649.png

2996-screenshot-from-2016-06-23-181654.png

Not applicable

ok sure,this my org name warriera.and my dev portal link http://dev-warriera.devportal.apigee.com