Works locally, but on server preview shows loading ... and doesnt change.
See original GitHub issueIt works as expected when i run locally. But on my server it keeps saying loading PDF … Also locally i see there is a get request to the url to get the pdf file, but on the server there is no request to get the pdf from url.
Code:
this.state = {
numPages: null,
pageNumber: 1,
}
onDocumentLoadSuccess = ({numPages}) => {
console.log(numPages);
this.setState({numPages});
}
render() {
return (
...
<Row>
<Col xs={12}>
Test Preview pdf.
</Col>
<Document
file={"https://gsi.berkeley.edu/media/sample-recommendation-letter.pdf"}
onLoadSuccess={this.onDocumentLoadSuccess}>
<Page height={150} scale={1} pageNumber={1}
onLoadProgress={this.onLoadProgress}/>
</Document>
</Row>
)
}
Local device:
Server:
and no requests to fetch pdf.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top Results From Across the Web
html - localhost Won't Immediately Update - Stack Overflow
First thing to try would be clearing browser history/cache and reloading the browser. If you enabled some kind ...
Read more >Visual Studio Code Live Server Not Working - freeCodeCamp
Then, reopen VSCode and try again – go to the HTML file you want to view, right click, and select "Open with Live...
Read more >Windows Admin Center common troubleshooting steps
This article describes how to diagnose and resolve issues in Windows Admin Center. If you're having an issue with a specific tool, ...
Read more >Device Preview - Troubleshooting - Adobe Support
Unable to preview or inspect your web page on devices? Check these tips to troubleshoot issues with Device Preview in Dreamweaver.
Read more >WordPress Changes Not Showing? Here's How to Fix ... - Kinsta
If the hard refresh didn't work, you might need to clear your browser's cache completely. This will wipe out all of the cached...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cbaron That worked thanks
A similar thing is happening to me.
No request is being made to get the worker.