• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
New Topic
Discussions Developer Community SDK Questions
K

Kyle Tan

started a topic almost 5 years ago
Answered

SDK: Error Handling

When using SDK adapters, I find that API-level errors don't surface in job reports.


Is there some way to do that?


For example, here's an error I get from the eBay API, using the SDK console:

 

{"errors":[{"errorId":25709,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"Invalid value for pricingSummary.price.value.","parameters":[{"name":"text1","value":"pricingSummary.price.value"}]}]}

 

But this is the corresponding error in a job report:

 

error: {
type: Workato::Adapters::OnException::Exception,
message: 400 Bad Request,
retry_count: 0
}

 

Is there a better way to build the SDK adapter to surface these issues? Any use-able workaround ideas would also be appreciated :)


Best Answer
S
Sharat Hegde said almost 5 years ago

Kyle,


http://docs.workato.com/developing-connectors/sdk/authentication/custom-authentication.html#detecton


The above link might interest you.

Answer
S

Sharat Hegde

said almost 5 years ago

Kyle,


http://docs.workato.com/developing-connectors/sdk/authentication/custom-authentication.html#detecton


The above link might interest you.

K

Kyle Tan

said almost 5 years ago

`.detect_on` does seem useful to catch errors that show up under status code `200`.


But how does that surface the API-level errors so that we can see the granular details in the job reports?

Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2020   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count