File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
actions/get-scrape-result Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,20 @@ export default {
1515 } ,
1616 } ,
1717 async run ( { $ } ) {
18- const response = await this . scrapeless . getScrapeResult ( {
19- $,
20- scrapeJobId : this . scrapeJobId ,
21- } ) ;
18+ try {
19+ const response = await this . scrapeless . getScrapeResult ( {
20+ $,
21+ scrapeJobId : this . scrapeJobId ,
22+ } ) ;
2223
23- $ . export ( "$summary" , `Successfully retrieved scrape results for job ID ${ this . scrapeJobId } ` ) ;
24- return response ;
24+ $ . export ( "$summary" , `Successfully retrieved scrape results for job ID ${ this . scrapeJobId } ` ) ;
25+ return response ;
26+ } catch ( { response } ) {
27+ $ . export ( "$summary" , `Successfully retrieved scrape result with error for job ID ${ this . scrapeJobId } ` ) ;
28+ return {
29+ success : false ,
30+ ...response . data ,
31+ } ;
32+ }
2533 } ,
2634} ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const ACTOR_OPTIONS = [
2929 } ,
3030 {
3131 label : "Airline Iberia" ,
32- value : "scraper.ibeira " ,
32+ value : "scraper.iberia " ,
3333 } ,
3434 {
3535 label : "Airline Expedia" ,
You can’t perform that action at this time.
0 commit comments