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

Failed login handling issue #81

Open
hossamefia opened this issue Sep 5, 2023 · 5 comments
Open

Failed login handling issue #81

hossamefia opened this issue Sep 5, 2023 · 5 comments

Comments

@hossamefia
Copy link

I am getting the following error on login
Am expecting failed log-in

var loginResult = await odooClient.LoginAsync();

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at PortaCapena.OdooJsonRpcClient.OdooClient.d__49`1.MoveNext()

@Andres-98
Copy link

I have the same error
image

@patricoos
Copy link
Member

patricoos commented Sep 6, 2023

When odoo crashes, returns html page. The error: "value: <. " is beginning of <html>. Check your environment, then login and password

@hossamefia
Copy link
Author

Yes you are correct but it needs to be handled

@SlimAhmad
Copy link

@hossamefia please how'd you resolve this issue

@Anaster666
Copy link

@SlimAhmad @hossamefia any proposal to resolve this error?

I have the same error

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

5 participants