astronaut1712 / angular2-odoo-jsonrpc

OdooRPC for angular2
21 stars 24 forks source link

type 'json' but called with a request of type 'http' #2

Open eneldoserrata opened 8 years ago

eneldoserrata commented 8 years ago

Hello @astronaut1712 thanks for this i get this error when try to login i using odoo 9

2016-09-26 04:45:28,248 19082 INFO ? openerp.http: <function authenticate at 0x10a0af230>, /web/session/authenticate: Function declared as capable of handling request of type 'json' but called with a request of type 'http' 2016-09-26 04:45:28,249 19082 INFO ? werkzeug: 127.0.0.1 - - [26/Sep/2016 04:45:28] "OPTIONS /web/session/authenticate HTTP/1.1" 400 -

astronaut1712 commented 8 years ago

@eneldoserrata I think the problem from CORS. You should check with nginx proxy or enable CORS of odoo backend.

HardieChristie commented 6 years ago

Hello everybody ! I'm facing the same problem (cors is already enable).

2018-09-27 13:28:47,307 15577 ERROR openerp.http: <function authenticate at 0x7f0388f6e6e0>, /web/session/authenticate: Function declared as capable of handling request of type 'json' but called with a request of type 'http'

Could you help me please ?