question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

originalname meta with utf-8 symbols

See original GitHub issue

This code

var Minio = require('minio')

var minioClient = new Minio.Client({
    endPoint: 'play.min.io',
    port: 9000,
    useSSL: true,
    accessKey: 'Q3AM3UQ867SPQQA43P2F',
    secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
});

var meta = { originalname: 'тест.pdf' };

minioClient.putObject('test', 'test.pdf', Buffer.from(''), 0, meta)

throws error

_http_outgoing.js:464
    throw err;
    ^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["x-amz-meta-originalname"]
    at ClientRequest.setHeader (_http_outgoing.js:473:3)
    at new ClientRequest (_http_client.js:194:14)
    at Object.request (https.js:289:10)
    at _makeRequest (C:\Projects\aclub-bpm\node_modules\minio\dist\main\minio.js:501:36)
    at DestroyableTransform.<anonymous> (C:\Projects\aclub-bpm\node_modules\minio\dist\main\minio.js:562:11)
    at DestroyableTransform.emit (events.js:203:15)
    at endReadableNT (C:\Projects\aclub-bpm\node_modules\readable-stream\lib\_stream_readable.js:1010:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Praveenrajmanicommented, Oct 15, 2019

We can close this issue @kannappanr

0reactions
lukepolocommented, Nov 30, 2021

yah for some reason it doesn’t get into the callback , feel free to try it yourself as well~

just add to your key + “\n”

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML meta charset Attribute - W3Schools
The charset attribute specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set, ......
Read more >
Why is < meta charset="utf-8" > important?
utf-8 is a specific character encoding. In other words, <meta charset="utf-8"> tells the browser to use the utf-8 character ...
Read more >
Use charset `utf-8` | webhint documentation
meta -charset-utf-8 checks if the page explicitly declares the character encoding as ... The character encoding should be specified for every HTML page, ......
Read more >
studiomanzoesimonetti.it pubg name generator
The unicode standard contains many thousands of symbols and special characters, and amongst these thousands are quite a few characters that look like...
Read more >
What is <meta charset="utf-8">? - Stack Overflow
That meta tag basically specifies which character set a website is written with. Here is a definition of UTF-8: UTF-8 (U from Universal ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found