Closed kritsananac closed 7 months ago
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Try removing the leading slash
- private filePath = '/src/values.yaml';
+ private filePath = 'src/values.yaml';
The path
URL parameter being encoded is not a bug, it works the way it should
Hi, @gr2m
I trying with path src/inner.yaml
and outer.yaml
, It's still not working
PS' that path is exist file in repo
Response for path is src/inner.yaml
err: {
"type": "RequestError",
"message": "Not Found",
"stack":
HttpError: Not Found
at /node_modules/@octokit/request/dist-node/index.js:124:21
at processTicksAndRejections (node:internal/process/task_queues:95:5)
"name": "HttpError",
"status": 404,
"response": {
"url": "https://api.github.com/repos/[OWNER]/[REPO]/contents/src%2Finner.yaml",
I'm not sure what's not working as the repo is private, but here is an example URL that works with the URL encoded path https://api.github.com/repos/octokit/rest.js/contents/src%2Findex.ts
I got it. Repo is already public Try to access 2 url in below, it's accessible and return JSON
https://api.github.com/repos/[OWNER]/[REPO]/contents/outer.yaml
https://api.github.com/repos/[OWNER]/[REPO]/contents/src%2fvalues.yaml
Maybe i have missing some configuration or something (It's not a bug, sorry...)
Let me ask, using personal access token (classic) need to allow any scope ?
My bad, I have using a wrong PAT
What happened?
I want update file content with this func
createOrUpdateFileContents
and put parameterpath
into option, it alway request errorThe value of
path
issrc/values.yaml
not sure why is alway encodedURI (%2F
is/
)Error Response
Versions
Relevant log output
Code of Conduct