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.

Error : Unable to transcode Buffer

See original GitHub issue

Hello, I am trying to get all columns of a table. I did this query :

connexion2
            .query('SELECT top 1 * FROM '+tableName)
            .then(data => {
                
               for(var key in data[0])
                    {
                            console.log(key);
                    }
                
            })
        .catch(error => {
            console.error(error);
        });   

But I get this error :

Uncaught Error: Unable to transcode Buffer [U_INVALID_CHAR_FOUND] at spawn.js :124

I found that it occurs only when I have a Ole object in my table (it works fine with other tables) I don’t want to get the image, I just need the column name. How can I achieve that?

Thank you very much.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Leticommented, May 9, 2019

Hello For my problem I solved it using .schema(4) instead of query which retrieves the columns names. I’m so sorry aaronbean because I don’t have a solution for this problem. Good Luck…

0reactions
aaronbeancommented, Apr 24, 2019

I’m having this same issue in retrieving a field with BLOB data. I receive this error:

Error: Unable to transcode Buffer [U_INVALID_CHAR_FOUND] at transcode (internal/buffer.js:27:15) at ChildProcess.child.on.exitCode (F:\fst\lxr-converter\node_modules\node-adodb\lib\spawn.js:124:22) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:915:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

I’m running Node v8.15.0.

In my case, I really do need this data, as I’m exporting it into another database. Any suggestions? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to convert buffer to string - javascript - Stack Overflow
I am able to get the ascii codes 6162 but they still aren't characters. javascript · node.js · string · buffer.
Read more >
How to use the buffer.transcode function in buffer | Snyk
To help you get started, we've selected a few buffer.transcode examples, ... 'b', 'utf8'), /^Error: Unable to transcode Buffer \[U_ILLEGAL_ARGUMENT_ERROR\]/ ...
Read more >
[100% Fixed] Plex Buffering & Stuttering Issues with 4K, Xbox ...
To fix Plex buffering errors with 4K videos, don't forget to enable the hardware acceleration for streaming. The hardware transcoding is not ...
Read more >
UTF What? A Guide for Handling SAS Transcoding Errors with ...
Additionally, a common origin of the transcoding error is UTF-8 encoded ... the error generated by SAS when it is unable to transcode....
Read more >
How to polyfill Buffer with Webpack 5 - viglucci.io
How to fix 'buffer is not defined' error and polyfill the Node.js Buffer ... The Webpack resolve.fallback configuration option allows us to ...
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