-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: HttpError: Not Found - https://docs.github.com/rest/repos/contents#create-or-update-file-contents #371
Comments
What did you set in the configuration for the repository? Is the github repo in public or private? |
I did not set any configuration for the github repo. It's a public repo. I have followed the docs to set up the github configuration in the plugin, including the github token etc. |
Bruh. |
By any chance, did you have protected the main branch ? |
Strange. Can you please open the log console (CTRL+Maj+I) and copy paste everything? |
If it works on the forked repo, maybe there is some error with mu configuration? |
logs from the log console.
|
any clues? |
Sorry, but I have a life… |
Can i get the path of the hello testing file? Also, could you please try this command in a terminal : The only clue is around the token or something like that. Because it works on my side with the same file, and a fork of your repo… |
oh, no hurries. The testing file is at the root of the Obsidian app. How can I get the error stack? The result of the "curl -i https://api.github.com/repos/williamium3000/myblog/git/refs"
I will try to go over all the processes and get back to you. |
It seems like for some reason, despite I can curl https://api.github.com/repos/williamium3000/myblog/git/refs in the terminal, 404 is reported in the obsidian. |
I created a new obsidian repo and it still won't work. |
I have also tried different tokens and tokens that has been tested (can used to upload images to imagebed in github). Still not working. I have also tried turning off my firewall. Still the same. |
I really don't know, and why the fucking error doesn't give me the stack T-T. |
yeah. no problem. I can add you to my repo. It's new repo, so nothing to lose. |
I have added you to my repo |
wil check it when I have the time. So sorry to don't found the error and provide a quick solution :( |
It's ok. No worries! |
The fact I'm able to make a proper PR on your repository but not you make this bug more and more cursed. Maybe github Rest API is somehow block on your side? |
It really weird as I can curl rest API in my terminal, but not my obsidian. I notice that, but turning off my firewall does not help. DO you have any suggestions on how to check whether github Rest API is somehow block on my side? |
I am in a hotel outside and was able to get it to work now. https://github.com/williamium3000/myblog/blob/main/test.md But why the hell my home network is not working? |
I think something block github on your network ? Or we can start to pray the omnimessiah… |
I don't think I have any proxy. |
getting this same bug. |
Could you please open the dev console (CTRL + MAJ + I) and go into the "network tab" and try to use the plugin? |
I don't think it's the same cause and problem than William. Could you please open another issue for investigate this? |
William can't, if I understand well, send any file even using the command to push all. So yes, could you please open another issue so I can track down? I will probably try to write a "debug" command in the plugin to test in sequence with dummy file the plugin, but it requires a lot of time that I don't have... |
ALso, could you please try to install the last beta update ? So I'm sure that I'm work on the same version as your. |
Did you try on a fresh vault? What is the name of the vault? |
Hi Mara-Li, thanks so much! I was using version 7.4.0 before, but I just updated to 7.5.0.1 and everything is working perfectly now. Thanks again for creating such an awesome plugin, I really think the name |
❤️happy to see that somehow the bug was fixed! |
Hi Mara, Thanks so much for your effort and everything!! Best |
Good to know!! Thank you for helping too!! |
Issue validation
Command used
No response
Plugin version
1.0.0
Describe the bug
This is the test md file in obsidian:
I have set up all the github related configurations and test connection works fine.
But I encounter the following error:
And the file is not uploaded to my GitHub either.
My GitHub is publically available.
https://github.com/williamium3000/myblog
How to reproduce ?
No response
Minimal Reproducible Example
Configuration
Relevant log output
OS
No response
Anything else?
No response
Obsidian information
The text was updated successfully, but these errors were encountered: