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

[dotnet core] Exception on File Upload to RemoteWebDriver / FireFox profile: System.NotSupportedException : No data is available for encoding 437 #198

Open
mialeska opened this issue Mar 3, 2021 · 0 comments
Labels
bug Something isn't working dotnet

Comments

@mialeska
Copy link
Contributor

mialeska commented Mar 3, 2021

Getting Exception on File Upload to RemoteWebDriver

System.TypeInitializationException : The type initializer for 'System.IO.Compression.ZipStorer' threw an exception.
----> System.NotSupportedException : No data is available for encoding 437
There is a related selenium issue:
SeleniumHQ/selenium#4816
SeleniumHQ/selenium#4816 (comment)

A workaround should be included into Aquality.Selenium:

reference the System.Text.Encoding System.Text.Encoding.CodePages Nuget package and somewhere before Encoding.GetEncoding(437) gets called, make sure to call Encoding.RegisterProvider(CodePagesEncodingProvider.Instance).

Also we should use LocalFileDetector (as already used in java) for RemoteBrowserFactory

@mialeska mialeska added bug Something isn't working dotnet labels Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dotnet
Projects
None yet
Development

No branches or pull requests

1 participant