ProtocolError "302 Found" on import

Asked by dleigh

Ok, finally got it installed. Now I'm just trying to do the import of products for the first time. By the way, OpenERP is running locally on Windows and Magento is remote on Linux. Here's my error:

Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.7
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 244, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "service\web_services.pyo", line 576, in execute
  File "osv\osv.pyo", line 58, in wrapper
  File "osv\osv.pyo", line 119, in execute
  File "osv\osv.pyo", line 111, in execute_cr
  File "C:\Program Files (x86)\OpenERP AllInOne\Server\addons\magentoerpconnect_generic\magerp_core.py", line 147, in sync_products
  File "C:\Program Files (x86)\OpenERP AllInOne\Server\addons\magentoerpconnect_generic\magerp_osv.py", line 113, in external_connection
  File "C:\Program Files (x86)\OpenERP AllInOne\Server\addons\magentoerpconnect_generic\magerp_osv.py", line 52, in connect
  File "C:\Program Files (x86)\OpenERP AllInOne\Server\addons\magentoerpconnect_generic\magerp_osv.py", line 25, in try_connect
  File "xmlrpclib.pyo", line 1147, in __call__
  File "xmlrpclib.pyo", line 1437, in __request
  File "xmlrpclib.pyo", line 1191, in request
ProtocolError: <ProtocolError for ****myurl****/magento/index.php/api/xmlrpc/: 302 Found>

I suppose I might have a problem with my magento xmlrpc setup but I've really no idea exactly where to go from here. Any clues anyone?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Magento OpenERP Connector Edit question
Assignee:
No assignee Edit question
Solved by:
dleigh
Solved:
Last query:
Last reply:
Revision history for this message
Lionel COUSTEIX (l-cousteix) said :
#1

Hi dleigh,

On my wn, I have still obtain this error in the following configuration.
OErp set on Windows 7 x64 and Magento website hosted by my provider.

The error was coming for the website declaration It must looks like http://url.tld/magento/ or in my case http://shop.domain-name.com/ becaus shop is recognize as a subfolder of domain-name.com.

The second thing, usually, I have setup Magento to connect using httpS protocol. It doesn't work with so I set to http://

Hope it will help to solve.

Revision history for this message
Lionel COUSTEIX (l-cousteix) said :
#2

Oups, I have forgottent to tell that I have also uninstall the old module from magento, and installed the new one, dated on february 2010.

Revision history for this message
dleigh (david-leighweb) said :
#3

Lionel,
Thank you for the suggestions. They gave me some ideas of different URL permutations to try, but no success. I'm currently using version 1.3.1 of the Magento extension, which is the latest on the magento site.

I am, however, using Magento 1.4.0.1 and NOT the 1.3.x series. Can one of the developers confirm whether this should or should not make a difference please?
Thanks!

Revision history for this message
Nautica (nautica1959) said :
#4

dleigh said on 2010-03-18: I am, however, using Magento 1.4.0.1 and NOT the 1.3.x series. Can one of the developers confirm whether this should or should not make a difference please?
Thanks!

The mappings are for Magento 1.3.2.4 but i don't know if its compatible with Magento 1.4 and i want to know this answer too if its possible

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
dleigh (david-leighweb) said :
#6

Can any developers comment...especially about the possible mapping differences playing a role in the problem?

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#7

Hi,

It is beyond doubt a domain name issue.

Looks like a 302 is happening from your URL to the full url.

ex. http://magento.mysite.com is getting translated to http://mysite.com/magento

Can you try with ur full URL?

Revision history for this message
dleigh (david-leighweb) said :
#8

Well, the url for my Magento admin dashboard is:

http://mydomainname/magento/index.php/admin/admin/dashboard/index/key/a761d03eb08d860afbd6c3a15651fe34/

so the one I'm putting into the "Location:" field in the OpenERP Magento connector is:

http://mydomainname/magento/

If I change that to:

http://mydomainname/

Then I get this error:

<ProtocolError for mydomainname/index.php/api/xmlrpc/: 404 Not Found>

Any ideas?

thanks!

Revision history for this message
dleigh (david-leighweb) said :
#9

Ok, thanks to some extra help from Thomas, I've gotten past my error. Here were my issues:

1st - http://mydomainname/magento/ is my server's name and I have a re-direct to my store front-end on a different domain: "mystoredomain". I use mydomainame for the server backend and figured that the xmlrpc interface did as well. But, instead of http://mydomainname/magento/, I needed to put http://mystoredomain in the Location: field.

2nd - I had entered my web services id and password thinking they needed to be case-sensitive. Thomas put them both as lowercase and that solved an "access denied" condition that I got once I'd fixed the 1st problem.

Hope this helps someone and thanks again to Thomas!