-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alfresco.SurfRequestError #8
Comments
Are you able to give a more detailed description of what happens, exactly? e.g. does the failure happen straight away or does it take a while, indicating a time-out? As you might be able to guess there is not much to go on from the exception itself but you add |
adding -d Log in (admin) Error comes up after approx 2 minutes |
Hi, 2 minutes is the default http.socket.timeout. if you take a look at your catalina.out, you should find a similar error : You will find this parameter if you look into the jar :
You can simply modify the value into the jar file but a better approach is to override the bean setting by creating a file called : Simply copy the content of spring-webscripts-application-context.xml and change the readTimeout value. Don't forget to restart tomcat. Regards, |
I had the same error, but after changing timeout value for alfresco webscripts, another timeout exception, now from alfresco.py script line 262 in share-import-export: return self.opener.open(req, timeout=self.timeout) I´ve changed default timeout in ShareClient.init to something higher, and it worked. |
Exporting a site (Alfresco 4.2) Log in (admin) |
java.lang.NullPointerException Hi wabson |
-d header: Content-Length: 1967 |
Exporting a site (Alfresco 4.0)
python export-site.py http://127.0.0.1:8080/share/page/site/unternehmenshandbuch/dashboard bla.json --username=x--password=x --export-content
Log in (admin)
Get site information
Export all site content
Export documentLibrary
Log out (admin)
Traceback (most recent call last):
File "export-site.py", line 254, in
main(sys.argv[1:])
File "export-site.py", line 214, in main
results = sc.exportAllSiteContent(sitename, siteContainers, includePaths, tempContainerName, async)
File "/Volumes/DMS/xp/share-import-export/shareclient/alfresco.py", line 810, in exportAllSiteContent
self.exportSiteContent(siteId, child['name'], includePaths, tempContainerName, async)
File "/Volumes/DMS/xp/share-import-export/shareclient/alfresco.py", line 775, in exportSiteContent
self.doJSONPost('proxy/alfresco/api/actionQueue?async=%s' % (str(async).lower()), json.dumps(actionDef))
File "/Volumes/DMS/xp/share-import-export/shareclient/alfresco.py", line 163, in doJSONPost
resp = self.doPost(path, dataStr, 'application/json; charset=UTF-8', method)
File "/Volumes/DMS/xp/share-import-export/shareclient/alfresco.py", line 144, in doPost
return self.doRequest(method, path, data, dataType)
File "/Volumes/DMS/xp/share-import-export/shareclient/alfresco.py", line 132, in doRequest
raise SurfRequestError(method, e.url, e.code, e.msg, e.hdrs, e.fp)
alfresco.SurfRequestError
The text was updated successfully, but these errors were encountered: