Resources from s3 are not displayed
dalehille opened this issue · comments
When clicking a link to an individual resource you will sometimes see a blank page.
I think this is because if a resource is uploaded to S3 (b/c the user defined s3_endpoint in razeedash-config config map) then the data
property of its record from the resources
collection will show a link to that s3 resource. If s3_endpoint was not defined then the actual resource json is stored in the data
field.
Any JSON.parse(this.props.resource.data)
lines in resourcesSingle.jsx could be causing this problem as they try to JSON.parse a http://
string rather than a json object. https://github.com/razee-io/Razeedash/blob/master/imports/ui/pages/resources/resourcesSingle.jsx#L259
at JSON.parse (<anonymous>)
at H.render (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:207)
at vs (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at ds (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at Ol (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at Zl (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at Yl (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at Nl (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)
at 5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9
at e.unstable_runWithPriority (5085e17360c0e63723a6845883ee3a3e9e5fbc9a.js?meteor_js_resource=true:9)```
@dalehille - is this still an issue?
@nathanleviere this has been fixed