Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing happens when running on MS Azure #101

Open
k-yle opened this issue Oct 14, 2017 · 0 comments
Open

nothing happens when running on MS Azure #101

k-yle opened this issue Oct 14, 2017 · 0 comments

Comments

@k-yle
Copy link

k-yle commented Oct 14, 2017

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:

...
> [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant