502 Proxy Error while cloning the Github Repository using Python code

1,393 views
Skip to first unread message

farha shaikh

unread,
Oct 30, 2014, 7:51:14 AM10/30/14
to opene...@googlegroups.com

Hi Everyone,

I am trying to clone a github repository using following GitPython code :

import git

from git import *
git.Git().clone("...:mitx/content-mit-1690r.git") or Repo.clone_from('.../content-mit-1690r.git', 'd:/edx/content-mit-1690r')

This is a private repository and I have created a SSH tunneling using SSH keys. I am able to clone this Repository using the same code when executing it using python interpreter through windows command prompt.

But when I am using the same code in a .py(python file) and executing the file gives following error :

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /courses/aeronautics-and-astronautics/16-16-09-trial-spring-2012/index.htm.

Reason: Error reading from remote server

To resolve this error we made following changes in http.conf file :

Proxyrequests  on

ProxyTimeout  2000

ProxyBadHeader Ignore 

After these changes we stopped receiving  502 Proxy error, but still we cannot clone the repository and now we are not getting any other error message.

As there is no error message now I cannot figure out the issue behind this. I have an assumption do I need to create new SSh keys which the Python will use to connect to the Github server?

Please suggest how should I look into it.




Peter Pinch

unread,
Oct 30, 2014, 10:19:35 AM10/30/14
to opene...@googlegroups.com
Hi Farha. This issue appears to be specific to this MITx course repository and not really relevant to this group. 

I'll follow-up off-list. 

- Peter

Peter Pinch |  Production Manager, Office of Digital Learning
Massachusetts Institute of Technology
11 Cambridge Center  |  Cambridge MA 02142
pdp...@mit.edu | T 617-253-6256C 617-652-0183



--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages