콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2107 화면

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

아바타
취소
베스트 답변

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.

아바타
취소