Re: Phantomjs-prebuilt issue on linux

213 views
Skip to first unread message

Haroon FFC

unread,
Aug 4, 2022, 4:34:58 AM8/4/22
to phan...@googlegroups.com, haroon....@family.qa

On Thu, Aug 4, 2022 at 11:32 AM Haroon FFC <haroon...@gmail.com> wrote:
Good Morning,

I have an API that will generate a pdf for my sales report. And I have created a service to run the execution always. But when I try to generate the report I get the below error. 

Though, I run the execution file without any services I am able to generate reports. Kindly find them and let me know of any suggestions.

image.png

Regards,
Haroon Rasheed

Haroon FFC

unread,
Aug 4, 2022, 4:36:04 AM8/4/22
to phan...@googlegroups.com, haroon....@family.qa

Aaron S. Hawley

unread,
Aug 4, 2022, 10:08:54 AM8/4/22
to phan...@googlegroups.com, haroon....@family.qa
I noticed that the binary artifacts for PhantomJS that are usually downloaded from Bitbucket are returning the error HTTP 429 Too Many Requests this morning.  Not sure if that's the same problem for you or not.  

Albeit, I'm working with PhantomJS in a Ruby build, and it looks like you are using Node.js

** Execute jasmine:ci
[2022-08-04 13:41:40] INFO  WEBrick 1.7.0
[2022-08-04 13:41:40] INFO  ruby 2.7.6 (2022-04-12) [x86_64-linux]
[2022-08-04 13:41:40] INFO  WEBrick::HTTPServer#start: pid=1645 port=46839
Waiting for server on localhost:46839...
jasmine server started
Phantomjs does not appear to be installed in ~/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs, installing!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    46  100    46    0     0    647      0 --:--:-- --:--:-- --:--:--   647
bunzip2: phantomjs-2.1.1-linux-x86_64.tar.bz2 is not a bzip2 file.
tar: phantomjs-2.1.1-linux-x86_64.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rake aborted!
TypeError: no implicit conversion of nil into String
/usr/local/lib/ruby/2.7.0/fileutils.rb:1601:in `path'
/usr/local/lib/ruby/2.7.0/fileutils.rb:1601:in `fu_each_src_dest0'
/usr/local/lib/ruby/2.7.0/fileutils.rb:1587:in `fu_each_src_dest'
/usr/local/lib/ruby/2.7.0/fileutils.rb:539:in `mv'
~/vendor/bundle/ruby/2.7.0/gems/phantomjs-2.1.1.0/lib/phantomjs/platform.rb:72:in `block in install!'


--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phantomjs/CAE%3D6FQ_bfYxfPxpc4_jsQd2WYXHDEWE7%3D%2BUQRFZiS1-_3u%2Btug%40mail.gmail.com.

Haroon FFC

unread,
Aug 7, 2022, 6:18:33 AM8/7/22
to phan...@googlegroups.com, haroon....@family.qa

Hi Aaron,

 

Thanks for the update. Yes, I’m using Node.js and it doesn’t have any issue when I run the execution file.

 

While I was creating a service, I got the below error!!

 

Do we have any quick fix for these issues?

 

 

Thanks,

Haroon Rasheed

Aaron S. Hawley

unread,
Aug 8, 2022, 9:05:13 AM8/8/22
to phan...@googlegroups.com, haroon....@family.qa
On Thu, Aug 4, 2022 at 10:08 AM Aaron S. Hawley <aaron.s...@gmail.com> wrote:
I noticed that the binary artifacts for PhantomJS that are usually downloaded from Bitbucket are returning the error HTTP 429 Too Many Requests this morning.  Not sure if that's the same problem for you or not.  

It turns out my particular issue has been resolved. The artifacts of PhantomJS are downloading from Bitbucket again, so I'm not having the issue I was anymore. Sorry I can't be of more help.
Reply all
Reply to author
Forward
0 new messages