chapmanu / signage

Digital Signage Riding on Rails
MIT License
13 stars 6 forks source link

After updating or creating new slide server returns 500 error #243

Open cbryant24 opened 4 years ago

cbryant24 commented 4 years ago

When creating or updating a new slide server returns 500 error

Screen Shot 2020-08-21 at 4 46 44 PM

Bugsnag reports an error with retrieving the url

Screen Shot 2020-08-21 at 4 47 52 PM
cbryant24 commented 4 years ago

It looks like the issue is caused with Screencap gem. The screencap gem takes the url that is passed into the method screenshot for the Slide Model.

The screencap gem used PhantomJS to open that webapage to convert that webpage into an image seen here

We are seeing an issue here as according to the Bugsnag error it's unable to open the page

cbryant24 commented 4 years ago

I tested the gem by hardcoding the preview url that bugsnag is reporting the error on but it is still returning a 500 status code error when creating or editing a slide

Screen Shot 2020-08-21 at 4 28 51 PM

I tried also hardcoding it with the https and it returned the same status code 500 errors

Screen Shot 2020-08-21 at 4 55 23 PM
cbryant24 commented 4 years ago

I tested using a generic site like https://google.com which worked when creating and editing slides

Screen Shot 2020-08-21 at 4 37 38 PM Screen Shot 2020-08-21 at 4 35 20 PM

It looks like it's an issue with possibly security or access to the port will check with IS&T team