-
-
Notifications
You must be signed in to change notification settings - Fork 43
error while installing jspm packages #129
Comments
We found the issue in this line of code: Line 433 in 748308a
It seems like Github API isn't sending the "status" anymore in the response header. |
so what do you suggest the resolution for this should be. below is my authentication code. i have verified my authkey. it is perfectly valid. call %node% %jspm% config registries.github.remote https://github.jspm.io |
we faced the same issue in our Jenkins environment
|
same I dropped the issue on stackoverflow too: https://stackoverflow.com/questions/66117687/jspm-not-able-to-download-github-packages-behind-the-proxy |
We need to know if the Github API changed somehow and stopped sending the status in the response header like it was supposed to do according to their documentation.
|
Sharing my really temporary solution to get my Docker containers working again:
|
@jonatastrife That's major. My though was the entire time that it was something that GitHub just removed, but if it's in the documentation, then I guess it's a bug? Have anyone been in contact with GitHub (support)? |
Also encountered this issue, made a fix similar to @kristofer84 :
...and copy over modified file to |
I know this is a super lame workaround but It helped me fixed my build pipeline...
Hope that helps anyone stuck. |
Looks like 2 people got to it before me while I was writing my post >< |
Our solution to the problem (similar to others), create a local copy of github.js, with the header.status.match-parts behind an if-block. Commit that file to the repo. In the build chain (azure devops), after "npm install", create a new step which copies the above mentioned github.js into the place of the one that was created during "npm install". |
thank you @yafanasiev your fix worked for me. |
Considering Github may not treat this as a bug, and it's more reliable to use status code from response object anyway, should we just switch to that? I can make a PR for this. |
In my org we are doing basically the same thing, we made our own modification to the file and are downloading it after the first npm install in azure devops and replacing it in jspm-github\github.js , we finally revived our CI pipeline with this. So now that we have more time to think, did anyone try to contact Github Support? |
@yafanasiev that sounds wonderful. At this point whatever works to get unstuck. |
I've published a 0.13.21 of the jspm-github with a possible fix for this. Blasting out the lock / node_modules on a jspm install should bring in this version since it's in the semver range. Please let me know if any issues with this still stand though. |
Could you update version 0.14 with the changes too? :) |
In the support link above (https://github.community/t/missing-status-in-response-header/160558) Github have replied indicating a change occurred and that it would not be rolled back. Documentation is to be updated instead. |
@fMads sure I've published a 0.14.14 as well for jspm 0.17. I must say it's quite nice to hear the project is still appreciated and used, as as an OSS developer one gets zero feedback until things break. jspm 3 will be coming out next month, and is quite a difference, follow jspm on Twitter if you're interested in the announcement. |
On behalf of us all @guybedford. Thank you. |
thanks @guybedford I am trying to npm install [email protected] but getting No matching version found. |
I am not sure but for us we just deleted our lock file and re-ran |
I am getting the below error, for installing jspm packages. i hhave verified the credentials its fine. Please let me know what could be the issue. this is the error in our CI/CD pipeline. which was working previously. but has been failing since friday(5th Feb 2021).
**warn Error on getPackageConfig for github:systemjs/plugin-text
TypeError: Cannot read property 'match' of undefined
at checkRateLimit (D:\a\1\s\HttpApi\node_modules\jspm-github\github.js:276:22)
at D:\a\1\s\HttpApi\node_modules\jspm-github\github.js:456:46
at tryCatch (D:\a\1\s\HttpApi\node_modules\rsvp\dist\rsvp.js:525:12)
at invokeCallback (D:\a\1\s\HttpApi\node_modules\rsvp\dist\rsvp.js:538:13)
at publish (D:\a\1\s\HttpApi\node_modules\rsvp\dist\rsvp.js:508:7)
at flush (D:\a\1\s\HttpApi\node_modules\rsvp\dist\rsvp.js:2415:5)
at process._tickCallback (internal/process/next_tick.js:176:11)
warn Error getting package config for github:systemjs/plugin-text.
Downloading npm:[email protected]
Looking up npm:source-map
Downloading npm:[email protected]**
The text was updated successfully, but these errors were encountered: