How to deal with "Error uploading files"? #108
-
I'd like to preface this by stating I am not very smart and this is my first time using Github Actions. When I push a commit, everything seems to go fine except for "Deploy to neocities". In the log, there is an error stating "Error uploading files". The log contains two more lines after this:
and then ends. There is also a warning about Node.js 12 actions being deprecated, but I'm not sure whether that is related.
The contents of the website are contained in a folder named |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
This usually happens when people try to deploy files that neocities doesn't like. Can you link me to the repo or GitHub action log output? |
Beta Was this translation helpful? Give feedback.
-
Just made it public, so you should be able to see it here: https://github.com/PencilVoid/neocities-pencilvoid/actions/runs/3399886932/jobs/5653978239 |
Beta Was this translation helpful? Give feedback.
-
The stack trace didn't print the error cause for some reason. I just pushed new version of deploy-to-neocities that will print more of the error. If you try again and see an error, let me know and I can help decipher the cause hopefully this time. |
Beta Was this translation helpful? Give feedback.
-
This is what it prints now:
I'm not sure what this means. |
Beta Was this translation helpful? Give feedback.
-
Ok, thats a little bit better of an error. Let me see if I can expose the body of the request error. That should hopefully have info on what file you are uploading that neocities is rejecting. |
Beta Was this translation helpful? Give feedback.
-
Sorry I haven't forgotten about this. I plan on looking into this issue more. One or more of the files you are trying to upload is being rejected by the API most likely, so if you want to experiment with something in the meantime, it would be figuring out which file is triggering that. If you do find out, let me know. |
Beta Was this translation helpful? Give feedback.
-
I'll try that when I find the time for it (in a few hours). I don't think it's to do with file types since all of the content I'm trying to upload was downloaded from Neocities and edited. |
Beta Was this translation helpful? Give feedback.
-
Found something interesting:
There is no file named |
Beta Was this translation helpful? Give feedback.
-
There seems to be! https://github.com/PencilVoid/neocities-pencilvoid/blob/main/site/art/desktop.ini Try deleting that. |
Beta Was this translation helpful? Give feedback.
-
You probably need to add hidden files added by your operating system to your .gitignore file for the project or your global git settings. |
Beta Was this translation helpful? Give feedback.
-
Adding |
Beta Was this translation helpful? Give feedback.
Adding
**/desktop.ini
to .gitignore and deleting the existing one worked. Thank you very much for your help! It seems to be working now; changes I make locally and push are reflected on Neocities.