scrapinghub / portia

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

error unexpected error #576

Closed jemjov closed 7 years ago

jemjov commented 8 years ago

hi all

i dont know why this happen and how to solve this i got some error while i click new sample the GUI for enter new sample not happen but got this error appear

portia error

can anyone help me to solve this?

grendy commented 8 years ago

+1

dirtychash commented 8 years ago

Try using Developer tools in browser to trace the error back,it some times helps to find where in the error is occurring. I use stand alone version so not to sure if it will help.

jemjov commented 8 years ago

@dirtychash can u tell me which one the developer tools is??

j2l commented 8 years ago

I have the same problem. FF Console replies: AdapterError: The backend responded with an error '69de-4db9-9a46' It is a server internal error, not on client side.

On Chrome, it throws a first error when clicking new spider: (index):7 GET https://portia-beta.scrapinghub.com/api/projects/101430/spiders/www.amazon.com/samples 500 (Internal Server Error)nrWrapper @ (index):7(anonymous function) @ raven.js:958send @ vendor-8f6b42c….js:5ajax @ vendor-8f6b42c….js:5ajaxRequest @ vendor-8f6b42c….js:27(anonymous function) @ vendor-8f6b42c….js:27 @ vendor-8f6b42c….js:19d @ vendor-8f6b42c….js:19ajax @ vendor-8f6b42c….js:27query @ vendor-8f6b42c….js:27d @ vendor-8f6b42c….js:26_query @ vendor-8f6b42c….js:26query @ vendor-8f6b42c….js:26afterModel @ portia-web-588b0fc….js:4p @ vendor-8f6b42c….js:19runSharedModelHook @ vendor-8f6b42c….js:18runAfterModelHook @ vendor-8f6b42c….js:18(anonymous function) @ vendor-8f6b42c….js:19y @ vendor-8f6b42c….js:19b @ vendor-8f6b42c….js:19v @ vendor-8f6b42c….js:19(anonymous function) @ vendor-8f6b42c….js:13invokeWithOnError @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5end @ vendor-8f6b42c….js:5run @ vendor-8f6b42c….js:5join @ vendor-8f6b42c….js:5u.join @ vendor-8f6b42c….js:11c.success @ vendor-8f6b42c….js:27l @ vendor-8f6b42c….js:4fireWith @ vendor-8f6b42c….js:4n @ vendor-8f6b42c….js:5(anonymous function) @ vendor-8f6b42c….js:5d @ raven.js:329nrWrapper @ (index):7

Then on creating a new data format (new sample button never came), 2 internal errors: (index):7 GET https://portia-beta.scrapinghub.com/api/projects/101430/schemas/f820-4cc0-90c5/fields 500 (Internal Server Error)nrWrapper @ (index):7(anonymous function) @ raven.js:958send @ vendor-8f6b42c….js:5ajax @ vendor-8f6b42c….js:5ajaxRequest @ vendor-8f6b42c….js:27(anonymous function) @ vendor-8f6b42c….js:27 @ vendor-8f6b42c….js:19d @ vendor-8f6b42c….js:19ajax @ vendor-8f6b42c….js:27query @ vendor-8f6b42c….js:27d @ vendor-8f6b42c….js:26_query @ vendor-8f6b42c….js:26query @ vendor-8f6b42c….js:26afterModel @ portia-web-588b0fc….js:4p @ vendor-8f6b42c….js:19runSharedModelHook @ vendor-8f6b42c….js:18runAfterModelHook @ vendor-8f6b42c….js:18(anonymous function) @ vendor-8f6b42c….js:19y @ vendor-8f6b42c….js:19b @ vendor-8f6b42c….js:19v @ vendor-8f6b42c….js:19(anonymous function) @ vendor-8f6b42c….js:13invokeWithOnError @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5end @ vendor-8f6b42c….js:5run @ vendor-8f6b42c….js:5join @ vendor-8f6b42c….js:5u.join @ vendor-8f6b42c….js:11c.success @ vendor-8f6b42c….js:27l @ vendor-8f6b42c….js:4fireWith @ vendor-8f6b42c….js:4n @ vendor-8f6b42c….js:5(anonymous function) @ vendor-8f6b42c….js:5d @ raven.js:329nrWrapper @ (index):7

(index):7 PATCH https://portia-beta.scrapinghub.com/api/projects/101430/schemas/f820-4cc0-90c5 500 (Internal Server Error)nrWrapper @ (index):7(anonymous function) @ raven.js:958send @ vendor-8f6b42c….js:5ajax @ vendor-8f6b42c….js:5ajaxRequest @ vendor-8f6b42c….js:27(anonymous function) @ vendor-8f6b42c….js:27 @ vendor-8f6b42c….js:19d @ vendor-8f6b42c….js:19ajax @ vendor-8f6b42c….js:27updateRecord @ vendor-8f6b42c….js:27updateRecord @ portia-web-588b0fc….js:23r @ vendor-8f6b42c….js:11k @ vendor-8f6b42c….js:26(anonymous function) @ vendor-8f6b42c….js:26flushPendingSave @ vendor-8f6b42c….js:26invokeWithOnError @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5flush @ vendor-8f6b42c….js:5end @ vendor-8f6b42c….js:5run @ vendor-8f6b42c….js:5join @ vendor-8f6b42c….js:5u.join @ vendor-8f6b42c….js:11handleEvent @ vendor-8f6b42c….js:17e.default.u.Mixin.create.m.handleEvent @ vendor-8f6b42c….js:16_bubbleEvent @ vendor-8f6b42c….js:16(anonymous function) @ vendor-8f6b42c….js:16dispatch @ vendor-8f6b42c….js:4v.handle @ vendor-8f6b42c….js:4d @ raven.js:329nrWrapper @ (index):7

raven.js:51 AdapterError: The backend responded with an error 'f820-4cc0-90c5'

Before all this I've seen an intercom error, but portia was going on, not sure if it's related.

j2l commented 8 years ago

Here it is: frame.268abd17.js:8 POST https://api-iam.intercom.io/vjs/users/ping 403 (Forbidden)n @ frame.268abd17.js:8(anonymous function) @ frame.268abd17.js:8r @ frame.268abd17.js:8o @ frame.268abd17.js:8o @ frame.268abd17.js:8(anonymous function) @ frame.268abd17.js:15(anonymous function) @ frame.268abd17.js:13value @ frame.268abd17.js:8value @ frame.268abd17.js:3(anonymous function) @ frame.268abd17.js:3 /#/projects/101430?url=https%3A%2F%2Fwww.amazon.com%2Fb%2Fref%3Ds9_acssbw…CFYQQBCX25X06%26pf_rd_t%3D101%26pf_rd_p%3D2598542082%26pf_rd_i%3D1045024:1 Uncaught (in promise) {"error_message":"incorrect user_hash"} (index):7 GET https://portia-beta.scrapinghub.com/api/projects/101430/spiders/www.amazon.com/samples 500 (Internal Server Error)

j2l commented 8 years ago

Afterg multiple attempts to create a spider and sample: Error: Internal Server Error portia-web-588b0fc20f75c7a6a2f54f275f0aa2c9.js:5:22045 AdapterError: The backend responded with an error [Errno 2] No file or directory: 'spiders/www.amazon.com_1/4685-4c1d-b85c.json'

looks like some server folder has some owner/right issue to me.

dirtychash commented 8 years ago

@jemjov Chrome has build in Web Developer tools. If using firefox i would use firebug.

dirtychash commented 8 years ago

@j2l Maybe portia has been install with wrong permissions. I had some thing similar and just launched slyd with sudo. Not sure if that would fix or not though.

dirtychash commented 8 years ago

I am running a stand alone version though so probably completely different.

j2l commented 8 years ago

Yeah, I'm speaking about the scrapinghub hosted Portia, not standalone (I would have server logs).

sagelliv commented 8 years ago

Can you try recreating the spider (create a new spider with the same extraction) to see if the issue is resolved?

HatemHusam commented 5 years ago

Hi, I'm facing the same issue here .. anyone find a solution for that, please?

GregBreak commented 4 years ago

+1