This question has been flagged
1 Reply
1511 Views

I downloaded the dump zip from my .sh account and opened a new trial database on odoo online. I'am able to connect to online db and read/write data correctly but when I try to use restore function I'am getting HTTP Error 423 Request Entity Too Large

import odoorpc
odoo = odoorpc.ODOOO( DOMAIN, protocol="jsonrpc", port=80)
odoo.login( ONLINE_DB, ADMIN, PASSWORD )
dump_file = open( SH_DUMP, 'rb')
odoo.db.restore( PASSWORD, ONLINE_DB, SH_DUMP )

Using protocol jsonrpc+ssl on port 433 return WinError 10054 An existing connection was forcibly close by the remote host 

odoo = odoorpc.ODOOO( DOMAIN, protocol="jsonrpc+ssl", port=443)


Am I doing something wrong?


Thanks

Avatar
Discard
Best Answer

I can see that you are trying to establish a connection to an odoo.sh instance using the odoorpc module from the Odoo Community Association (OCA). To do this, you can use the following example as a reference:


odoo = odoorpc.ODOO('mydatabase.dev.odoo.com', protocol="jsonrpc+ssl", port=443)

It's important to mention that when entering the URL "mydatabase.dev.odoo.com" you should not include the protocol (http or https).

For further information on connecting to an odoo.sh instance, you can check the "What APIs are available?" section on odoo.sh's FAQ page located at "https://www.odoo.sh/faq". This page provides additional information on the available APIs and the process of connecting to an odoo.sh instance.

Avatar
Discard