OdooJsonRpcClient icon indicating copy to clipboard operation
OdooJsonRpcClient copied to clipboard

Failed login handling issue

Open hossamefia opened this issue 2 years ago • 5 comments

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.<CallAndDeserializeAsync>d__49`1.MoveNext()

hossamefia avatar Sep 05 '23 21:09 hossamefia

I have the same error image

Andres-98 avatar Sep 06 '23 16:09 Andres-98

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

patricoos avatar Sep 06 '23 17:09 patricoos

Yes you are correct but it needs to be handled

hossamefia avatar Sep 07 '23 09:09 hossamefia

@hossamefia please how'd you resolve this issue

SlimAhmad avatar Oct 19 '23 13:10 SlimAhmad

@SlimAhmad @hossamefia any proposal to resolve this error?

I have the same error

Anaster666 avatar Jan 26 '24 16:01 Anaster666