wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.58k stars 540 forks source link

PDF was working for 15 days but suddenly start showing error ` [Error: DownloadFailed:https://***.pdf` after using it 15 days #708

Open ajayranga opened 1 year ago

ajayranga commented 1 year ago

What react-native version are you using? 0.70.5 What react-native-pdf version are you using? ^6.6.2 What platform does your issue occur on? (android/ios/both) android/ios Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue 2) Interesting logs

also sometimes error occurs but pdf shown

Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?

` <Pdf style={styles.pdfViewer} source={{uri}} onLoadProgress={progress => console.log('Progress', progress)} onLoadComplete={() => setIsLoaded(true)} trustAllCerts={false} onError={handleError} />

const handleError = (e: any) => { console.log('error opening pdf ', e); if (showNotes) { Alert.alert('Cannot open pdf'); showPdfHandler(false); } }; `

Screenshot from 2023-01-03 15-39-10

ajayranga commented 1 year ago

for 15 days it was working fine but getting error from yesterday

BraveEvidence commented 1 year ago

This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o

imhastie commented 1 month ago

are u sure this problem does not come up from your url/pdf ??

imhastie commented 1 month ago

double check your url