ERP-Ukraine / odoo-rpc-dart

Odoo RPC Library for Dart
MIT License
43 stars 32 forks source link

code:100问题 #21

Closed 443933773 closed 2 years ago

443933773 commented 2 years ago

image

443933773 commented 2 years ago

任意一个callKw请求都会报这个错 image

lem8r commented 2 years ago

Hi!

What was the result of authentication call before that?

443933773 commented 2 years ago

Hi!身份调用正常 image

lem8r commented 2 years ago

Well, maybe session was not extracted from cookies. You need to debug _updateSessionIdFromCookies to see if session value was stored.

If session was extracted - it is valid for next call.

lem8r commented 2 years ago

Hi!身份调用正常 image

In your case session id missing. It should look like following image

In order to find the reason I need to check http headers that were sent to your client.

443933773 commented 2 years ago

hello !

This is my request header

image

443933773 commented 2 years ago

hi!这个问题是因为odoo的安全验证导致的,在调试过程中我发现了这个一个问题,这是否是导致cookie消失的原因呢 image

lem8r commented 2 years ago

Maybe you're using flutter for web? It won't work at least because of https://github.com/odoo/odoo/pull/37853