Skip to content
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

i.headers is not iterable #618

Closed
mrehanabbasi opened this issue Oct 3, 2022 · 12 comments
Closed

i.headers is not iterable #618

mrehanabbasi opened this issue Oct 3, 2022 · 12 comments
Assignees

Comments

@mrehanabbasi
Copy link

Extension Version: 0.9.0

When I try the License: Choose license option in the command pallet, I get the following error in VSCode:

i.headers is not iterable

What seems to be the issue?

@ultram4rine ultram4rine self-assigned this Oct 3, 2022
@ultram4rine
Copy link
Owner

Hi @mrehanabbasi

It looks like an error somewhere from octokit/rest.js. But all ok from my side.

@mrehanabbasi
Copy link
Author

@ultram4rine So, what can be done?

@ultram4rine
Copy link
Owner

@mrehanabbasi maybe you faced API rate limit error. Do you use token as described here?

@mrehanabbasi
Copy link
Author

I've even used a token but get the same error.

@adam248
Copy link

adam248 commented Oct 10, 2022

I have the same error as well when I first tried to use this extension.
Wasn't even able to select a license for my first attempt.
Added a token as well ( blank permissions as I wasn't sure which one was needed for Github's API ) and assumed none.
i.headers is not iterable I believe is a type error due to the data returned from Github was not as expected by the extension.
Could you do a try and expect around i.headers and display i's value so we can at least see the type and value of I to allow for easier debugging from the user-end...
Writing a better error handler is never-a-bad-idea... 😄
Unless you already have a good idea of what is happening...
Perhaps the API data structure has changed?

Windows 10.0.19042
VSC 1.72.0

@ultram4rine
Copy link
Owner

octokit/request.js#445 looks like the root cause.

@adam248
Copy link

adam248 commented Oct 12, 2022

This might be related to these issues here:
RapidAPI/feedback#72
microsoft/vscode#163214

@adam248
Copy link

adam248 commented Oct 12, 2022

When I disable the RapidAPI Client extension this extension now works.
I believe the RapidAPI Client is causing errors for all Github API related calls at the moment....
Please try and disable the RapidAPI Client extension to see if this works for you as well.

@ultram4rine
Copy link
Owner

Hi @adam248, thanks for research. Now it is clear why I was unable to reproduce this error - I don't have RapidAPI extension. I confirm that with this extension the error appears.

As I can see the source of RapidAPI Client is closed, so we unable to see what actually happening.

@adam248
Copy link

adam248 commented Oct 12, 2022

no worries @ultram4rine, I have disabled the extension for now and raised the issue with them.
I believe you should be able to close this issue once we have confirmed with @mrehanabbasi is using the RapidAPI Client extension as well.

@mrehanabbasi
Copy link
Author

I am using the RapidAPI Client extension and disabling it works for me as well.

@ultram4rine
Copy link
Owner

Great. I then close this since the problem is not on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants