scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.22k stars 1.41k forks source link

Getting Started Error #901

Closed caiquan-github closed 3 years ago

caiquan-github commented 4 years ago

The backend responded with an error

Invalidfilenameat/api/projectsThestringhttp://www.baidu.comisnotavalidfilenameRequestMethod:POSTRequest URL: http: //ocahost:9001/api/projectsDjangoVersion2.23PythonExecutable/usr/bin/python3PythonVersion3.5.2 Python Path: /app/portia server, /app/portia server, app/sly, /app/slybot, / usr/lib/python35 zip us/ib/p. 5, u/b/ thon3 5/plat-x8664-inux-gnu, us/b/python.5lib-dynload

/r/oca hon 5s- ack u /i/p thon/dist-packagesserver time Sun, 28 Jun 20200: 1527+0000 Installed Applications: ' dbrepo apps. Dbrepoconfig, ' storage apps. Storage Config, portia orm apps. Portiaormconfig portia_ api apps. Portiaapiconfig', django. Contrib. Auth, django. Contrib. Contenttypes, django. Contrib. Sessions whitenoise. Runserver--nostatic, django. Contrib. Staticfiles' Installed Middleware

'django middleware security. Securitymiddleware', whitenoise middleware. White Noisemiddleware

django. Contrib. Sessions. Middleware. Sessionmiddleware', django. Contrib. Auth. Middeware. Authenticationmiddleware django middleware clickjacking. Xframeoptionsmiddleware', portiaorm middleware. Ormdatastoremiddleware Traceback: File/ us/oca b/p thon.5/dist-packagesdjango/core/handlersexception.py in inner 34 response get response (request )File/us/oca /b/p. 5/dist-packages/django/core/handlers/base. Py in - response 115 response =self process exception by_middleware (e, request)File/usr/loca /ib/python.5/dist-

packages/django/core/handlers/base. Py - response 113 response=wrapped_callback (request, callback_args calbackkwargs)File"/usr/ocal/ib/python3.5/dist-packages/django/iews/decorators/csr.py"inwrappedVview54. Return view (, waf u/oa /p hon3.5dist-packages/rest framework/vie. Py in view95 return self dispatch (request, args, wargs) us/i/. 5/contextl py in inner 30. Return func (args, kwd File/ app/portia server/portia api/resources/route y in dispatch 72. Return super Jsonapiroute, self). Dispatch (request args, wargsFile us/oca b/ thon.5dist-packages/rest framework/view. Py in dispatch 494. Response self handle_exception(exc)File/app/portia server/portia api/resources/route. Py in handle_exception 75 response super (Jsonapiroute, self. Handle exception () us/ca ib/p thon35/dist-packages/rest_framework/views. In handle_exception 454. self. aise uncaughtexception(exc)File/usr/local/lib/python.5/dist packages/rest framework/views. Py"in dispatch 491. Response=handler (request, args, kwargs)File

app/portia server/portia_ apiresources/projects. Y in create 113. If not self storage is_valid_filename name) or. in name: File/us/oca /ib/python. 5/dist-packages//utils/functional. Py -_80. Res

instance. Dict_self. name)=self func(instance)File/app/portia server/portia_apiresourc/route. Py in storage 67

caiquan-github commented 4 years ago

Installation method docker docker run -i -t --rm -v :/app/data/projects:rw -p 9001:9001 scrapinghub/portia