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

Plugin throws error with Docker #99

Closed
Jordan-Nguy opened this issue Oct 10, 2024 · 3 comments · Fixed by #100
Closed

Plugin throws error with Docker #99

Jordan-Nguy opened this issue Oct 10, 2024 · 3 comments · Fixed by #100
Assignees
Labels
bug Something isn't working

Comments

@Jordan-Nguy
Copy link

Jordan-Nguy commented Oct 10, 2024

Describe the bug
When the bot tries to search for free games, or when the !freegames command is used, the following error appears and no games are added:
2024-10-10 15:23:56|ArchiSteamFarm-18|ERROR|ASF|Execute() An error occurred: AggregateException One or more errors occurred. (Method not found: 'Void System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)'.) (Method not found: 'Void System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)'.) (Method not found: 'Void System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)'.)

"<1> Unknown command!" is replied when I try to do !freegames

Desktop (please complete the following information):

@AyamiAlince
Copy link

Similar error without using docker

@maxisoft maxisoft self-assigned this Oct 11, 2024
@maxisoft maxisoft added the bug Something isn't working label Oct 11, 2024
@maxisoft maxisoft reopened this Oct 11, 2024
@maxisoft
Copy link
Owner

maxisoft commented Oct 11, 2024

Hi everyone,

Thanks for reporting and commenting the issue!

This issue has been addressed in pull request #100.
Latest plugin version (v1.7.1) should reflect thoses fix/changes


The error "Method not found" when using the plugin with latest asf was caused by changes in the trimmed binary. The pull request updates the SimpleHttpClient class to use reflection for property access, ensuring compatibility even if some properties names change or are trimmed in the future.

@Jordan-Nguy
Copy link
Author

Error is gone, no games added but I’m sure it works.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants