PDF files not opening in repositories #64419
-
Select Topic AreaQuestion BodyI have a repository in GitHub, where I had previously uploaded some pdf files. But, when I am trying to access any of the pdf files, it is showing that "Unable to render code block" and the download option is also not working. The same problem is happening if I am trying to access repositories of other users where pdf files are uploaded. I tried to open it both in GitHub website, and in my phone. But, neither of them is working. It is showing "Something went wrong" in GitHub mobile and "Unable to render code block" in the website. When I asked others to open the repository for me, it is working fine for them. What is the problem here and what is the solution? My repository link: https://github.com/iamsnehadas/Allpdfs |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 8 replies
-
For this issue, better try accessing the repository with a different browser or clearing your browser's cache, sometimes the issue is due to the browser You can mark this as answer and close this discussion, and let me know if this issue got resolved by github or not.. |
Beta Was this translation helpful? Give feedback.
-
There are a few possible reasons why you are getting the "Unable to render code block" error when trying to access PDF files on GitHub.
If you have ruled out the above possibilities, then the next thing you can try is to embed the PDF file in a GitHub page. This will allow you to view the PDF file without having to download it. To do this, follow these steps:
If you are still having problems rendering PDF files on GitHub, you can contact GitHub support for help. |
Beta Was this translation helpful? Give feedback.
-
I've tested this across different browsers and the issue only arises in Safari. Specifically, I'm using Safari v14.
The |
Beta Was this translation helpful? Give feedback.
-
I contacted GitHub support, they also could not identify the problem. It probably varies from device to device. |
Beta Was this translation helpful? Give feedback.
-
I am currently having this same issue |
Beta Was this translation helpful? Give feedback.
-
Same I am too facing this issue from 2 months , I used edge and chrome browser . It is even not opening in GitHub mobile application . |
Beta Was this translation helpful? Give feedback.
-
Hey, so I tried different methods, but the problem was not entirely resolved. One possible solution can be using high-speed internet. When I was using my mobile internet hotspot, or was trying via the mobile application, it was not opening. But when I was using hi-speed wi-fi network, the files were opening. So it may be a network issue. |
Beta Was this translation helpful? Give feedback.
-
Having the same issue; I get an error message "Error rendering embedded code ... Invalid PDF". This is a file that has been sitting out there for a while, and the only "embedded code" is some mailto: links for e-mail (it's a resume). The file opens just fine on my local PC. I tried re-rendering the file and uploading it again, but the error persists. |
Beta Was this translation helpful? Give feedback.
-
I am having a similar issue but it's a 404. This file has been in the repository for some months and opens fine. But this one is a recent upload and I get a 404. I copy/pasted the path & name so there's no typo. Same location as the one that opens. Shows that it's there in the repo. Que pasa? |
Beta Was this translation helpful? Give feedback.
-
This is very iritating issue. Still its not fixed. There are lot of usefults pdfs out there in git repos we are not able to access them. Shame! |
Beta Was this translation helpful? Give feedback.
-
my issue have soleved. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this is the reason, but I think I found a fix (worked for me at least). I renamed my pdf file so that it doesn't contain any space, and now I am not getting this error. Earlier, when my file name had a space, I kept getting this error. Renaming my file before uploading it to my repository worked. |
Beta Was this translation helpful? Give feedback.
-
Turn of all extensions, then refresh, then add the extensions again one by one and see which extension might be causing this. For me, it was the my dark mode extension |
Beta Was this translation helpful? Give feedback.
-
The Extension "Truffle" on Firefox caused this for me. |
Beta Was this translation helpful? Give feedback.
-
In Firefox using NoScript, I needed to allow the domain
for PDFs to get rendered. |
Beta Was this translation helpful? Give feedback.
Turn of all extensions, then refresh, then add the extensions again one by one and see which extension might be causing this. For me, it was the my dark mode extension