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
yarn policies set-version
crashes with "request.filter is not a function"
#7847
Comments
You're right, it works with a proper GitHub token. Thanks! |
@olingern adding github token does not seem to help:
If I try curl that the reason is clear:
|
We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details yarnpkg/yarn#7847
We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details yarnpkg/yarn#7847
We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details yarnpkg/yarn#7847
We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details yarnpkg/yarn#7847
* fix: change the way we install yarn in .yarn/releases We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details yarnpkg/yarn#7847 * fixup! fix: change the way we install yarn in .yarn/releases
@sleshchenko I would make sure you're on the latest version, |
I am still getting the same issue, FYI.
|
@olingern Hello, my issue not really that not clear error is reported but that yarn uses token as query param which is not allowed anymore, header is expected. See #7847 (comment) |
I managed to work around this by first installing yarn 1.13.0, which appears to call |
yet... |
Adding more to this, you can see that the request hits a 400 error: Example request: https://api.github.com/repos/yarnpkg/yarn/releases?access_token=1 Response:
This is an issue with Yarn passing the access token by URL instead of by header. |
Was able to work around this by blanking out the GITHUB_TOKEN="" yarn set version 1.22.19 |
Still facing this when |
@sepehr What version of See the comment above in #7847 (comment)
If you run |
For others running into this, for me it worked to set the
|
Bug description
Using Yarn 1.21.1, running
yarn policies set-version
with^1.21.1
or1.21.1
crashes with:request.filter is not a function
. Passingberry
works.This happens even in a new directory with
package.json
containing just{}
.yarn-error.log
contents:Command
yarn policies set-version '^1.21.1'
What is the current behavior?
What is the expected behavior?
It should set the policy. If there's anything wrong with my environment, it should say that explicitly instead of crashing in a random place.
Steps to Reproduce
package.json
consisting of just{}
.yarn policies set-version '^1.21.1'
Environment
12.14.1
1.21.1
The text was updated successfully, but these errors were encountered: