You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this works perfectly on my local machine but not on an azure web-app.
This is the code (using express):
app.get('/some/end/point/:id/image.png',(req,res)=>{const{ id }=req.params;something.doSomething(id).then((result)=>jade.compileFile('./somefile.jade')(result)).then(svg2png).then((buffer)=>{res.contentType('.png');res.send(buffer);}).catch((err)=>{console.log(err);res.send('Error');});});
It gets up to the
.then(svg2png)
part, but then the next .then() is never triggered, nor is .catch().
These are the install logs:
...
> phantomjs-prebuilt@2.1.15 install D:\home\site\wwwroot\node_modules\phantomjs-prebuilt
> node install.js
Found PhantomJS at D:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe ...verifying
PhantomJS is previously installed at D:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
Npm v5.5.1, node v6.11.4.
The text was updated successfully, but these errors were encountered:
Hi, this works perfectly on my local machine but not on an azure web-app.
This is the code (using
express
):It gets up to the
part, but then the next
.then()
is never triggered, nor is.catch()
.These are the install logs:
Npm
v5.5.1
, nodev6.11.4
.The text was updated successfully, but these errors were encountered: