Error while dockerize ScrapySharp
Opened this issue · 3 comments
gtrq24 commented
duane-w commented
This is related to this issue: dotnet/runtime#22718
On linux Uri treats "/user/signin" as a valid UriKind.Absolute. I fixed this issue by using if (Action.StartsWith("/") == false && Uri.TryCreate(Action, UriKind.Absolute, out url)).
SeppPenner commented
In my case, the issue was the same: A link in a form was not fully qualified and I adjusted it with something like:
loginForm.Action = (baseUrl.EndsWith("/") || loginForm.Action.StartsWith("/"))
? $"{baseUrl}{loginForm.Action}"
: $"{baseUrl}/{loginForm.Action}";
SeppPenner commented
For me, this is a dotnet bug on Linux / Mac... Might still be useful to state this as "Known issues" in the docs somewhere.