Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

'Unknown S3 Content type text/html' with .await chromeless.htmlUrl() #396

Closed
blacelle opened this issue Jan 23, 2018 · 2 comments
Closed

Comments

@blacelle
Copy link

This is a (Bug Report / Feature Proposal)

Description

I tried the feature merged in #274, i.e. saving HTML content into S3. I get an error with the message

Error: Unknown S3 Content type text/html

In CloudWatch, I can see:

2018-01-23T19:04:13.095Z 312697ed-0070-11e8-ac4b-b9ec7155918c Chrome error
{}

I rely on chromeless 1.5.0

@blacelle
Copy link
Author

For an unknown reason, this seems related to the usage of a proxy. Without proxy, saving of HTML is OK. My proxy configuration seems wrong as the HTML remains
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"></pre></body></html> while screenshots are white-only.

@blacelle
Copy link
Author

I close this as the .getHtml issue reported here is certainly not relevant

adieuadieu pushed a commit that referenced this issue Jul 8, 2018
…396) (#421)

* fix error caused by missing content type #276 & #396

* use utf8 for saving html files to S3, leave base64 for pdf and png
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant