alanbazan
Posts: 1
Joined: Sat Oct 23, 2021 12:04 am

Export sever generates URL with 404 code

When I use export server it generates the URL (https://export.highcharts.com/charts/ch ... 135ac.jpeg)
but this link shows a message like this:

Cannot GET /charts/chart.0259f3ba3f364bbf8dffd4da879135ac.jpeg
alexaugusto1
Posts: 15
Joined: Thu Mar 11, 2021 4:29 pm

Re: Export sever generates URL with 404 code

Hi,

I'm having the same issue.

It can be seen in this example:

https://jsfiddle.net/alexaugusto/q9k1yxue/134/
nherranzg
Posts: 1
Joined: Mon Oct 25, 2021 10:16 am

Re: Export sever generates URL with 404 code

Hi,

same problem for me, but not allways. If I try to export 10 images, 1 or 2 work fine but the most part of them throw the same error 404. And it´s completely random what images work and what don´t work.

Thank you in advance.
jolustja
Posts: 1
Joined: Tue Oct 26, 2021 7:42 am

Re: Export sever generates URL with 404 code

Hello,

we have the same problem for 2-3 days. We get an image URL that does not return an image.

Cannot GET /charts/chart.3ab8a3042cff4116a2b8c644e7bd6837.png
subash
Posts: 2
Joined: Tue Oct 26, 2021 10:14 am

Re: Export sever generates URL with 404 code

Hi , I'm also having the same problem

The remote server returned an error: (404) Not Found.
1 or 2 work fine but the most part of them throw the same error 404
subash
Posts: 2
Joined: Tue Oct 26, 2021 10:14 am

Re: Export sever generates URL with 404 code

hi,
i'm also having the same issue
The remote server returned an error: (404) Not Found.
User avatar
KacperMadej
Posts: 4632
Joined: Mon Sep 15, 2014 12:43 pm

Re: Export sever generates URL with 404 code

Hello,

Thank you for reporting the problem. Please check the related GitHub issue with a suggested workaround: https://github.com/highcharts/highcharts/issues/16530

The workaround copy-paste (in case you hate clicking links or would like to have the answer with the solution instead of just the link :D )

> Here is an example of how you can use a single POST-request with a base64-encoded result: https://jsfiddle.net/w9Lb5m7z/25/

(source: https://github.com/highcharts/highchart ... -951760084)

Best regards,
Kacper Madej
Highcharts Developer
alexaugusto1
Posts: 15
Joined: Thu Mar 11, 2021 4:29 pm

Re: Export sever generates URL with 404 code

Hi Kacper Madej,

Our solution needs a URL to fully work.

There is any other workaround that we can get a correct URL instead of a base64?

Thank you in advance.
User avatar
KacperMadej
Posts: 4632
Joined: Mon Sep 15, 2014 12:43 pm

Re: Export sever generates URL with 404 code

Yes, you could set up your own export server and if it will be running as a single instance then it should not create this problem (a single instance of the export server, workers do not have to be limited within the server instance).
https://www.highcharts.com/docs/export- ... the-server

Another option is as mentioned here: https://github.com/highcharts/highchart ... -950132021
In case the instructions there are unclear or you would like to see a code example please contact our developers on the GitHub issue directly.

There might be other options that could work for your case if you could provide more details about why a URL is needed - maybe it could be resolved in a different way.

Best regards,
Kacper Madej
Highcharts Developer
alexaugusto1
Posts: 15
Joined: Thu Mar 11, 2021 4:29 pm

Re: Export sever generates URL with 404 code

KacperMadej wrote: Wed Oct 27, 2021 11:10 am Yes, you could set up your own export server and if it will be running as a single instance then it should not create this problem (a single instance of the export server, workers do not have to be limited within the server instance).
https://www.highcharts.com/docs/export- ... the-server

Another option is as mentioned here: https://github.com/highcharts/highchart ... -950132021
In case the instructions there are unclear or you would like to see a code example please contact our developers on the GitHub issue directly.

There might be other options that could work for your case if you could provide more details about why a URL is needed - maybe it could be resolved in a different way.

Best regards,
Thanks.

I've asked at GitHub how to use the AWSELB cookie.

We use the Google Slides API to insert the chart images in the slides, and the API just accepts URLs.

If you know a simpler solution let me know.

One last thing. When this issue is fixed, do we still have to do some changes in our code or everything will work on the fly?
User avatar
KacperMadej
Posts: 4632
Joined: Mon Sep 15, 2014 12:43 pm

Re: Export sever generates URL with 404 code

More details are in the GH issue thread, so to avoid duplication let's continue there.

About Google Slides API - it looks like there should be an option to use base64: https://stackoverflow.com/questions/629 ... bar-base64
Kacper Madej
Highcharts Developer

Return to “Highcharts Usage”