cyntler / cyntler/react-doc-viewer

Error 404 when accessing s3 urls for docx even if it is existing

Open
#112 15 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi,

Has anyone encountered this error when accessing s3 urls via DocViewerRenderers?
![image](https://user-images.githubusercontent.com/25379092/216311966-b7f9d2d2-806b-4894-b9f8-907832d29912.png)

The scenario is, I am passing an s3 url docx file, once I render the document, the initial response is 404 but then after a while, the document will load and everything is fine but sometimes the documents is just stuck on loading. But everytime I reopen/rerender via the react-doc-viewer, it returns a response of 404 first before loading the document.
![image](https://user-images.githubusercontent.com/25379092/216314277-2525f309-b02a-42a9-bb7c-f2ec9388f52c.png)

Appreciate all the assistance. Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at DocViewerRenderers and reproduce the issue with the reported S3 DOCX URL, observing the initial 404, retry, and loading behavior. Done means the document loads reliably without a transient or stuck 404; the issue names no file or test, so the relevant request path must first be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, react, typescript
Domain
cloud, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.