422 Unprocessable Entity when I PUT data on repository #55336
Replies: 3 comments 11 replies
-
I see two problems there:
|
Beta Was this translation helpful? Give feedback.
-
I thounght keep my token secret. I put it in the headers: {
Accept: "application/vnd.github+json",
Authorization: `Bearer ${git.token}`
}, So I go to change my token, now, like you suggest :) to avoid the bad thing ! And go to try to understand what you mean about my bad request for the body... but it's really not obvious to me. I'm a beginner in this part of code with API dealing. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I try to send file to my Github repo via a html process, but I fail with the error 422. I have the feeling that my data is good but... nooooo. I'm beginner in this part and I don't find a way to solve my problem.
Always is good but... that's fail on the error 422.
For information, I work on local.
Before post here I post too on stackoverflow : https://stackoverflow.com/questions/76231427/api-github-return-422-unprocessable-enty-when-the-data-is-passed
I add a scree shot of my console error :
Beta Was this translation helpful? Give feedback.
All reactions