AdobeDocs / AdobeDocs/pdfservices-api-documentation

Missing error handling documentation

Open
#987 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
229
PR merge metrics
No merged PRs in 30d

Description

If for some reason the credentials have expired or the domain making the request has not been whitelisted, we get a 401 Unauthorized error on the jwt authentication request. But I couldn't find any example on how to handle this kind of error properly, like in a global document event like "adobe_dc_view_sdk.error" for example or as an error callback in the configuration object.

![Image](https://github.com/user-attachments/assets/358dcdcc-9850-4bdb-b15c-d06442c24ed5)

![Image](https://github.com/user-attachments/assets/cbcf3ee0-e1d1-4c24-b474-c3413afbee7d)

![Image](https://github.com/user-attachments/assets/047f1226-d388-4bfc-b52e-8d202303ea26)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the JWT authentication request and the documented adobe_dc_view_sdk.error event and configuration object entry points. Determine whether 401 Unauthorized responses from expired credentials or non-whitelisted domains have a supported handling path, then document the applicable example or callback behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.