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.

Dropbox Authentication Error: Key must be a buffer

See original GitHub issue

When I authentication to dropbox I have get “key must be a buffer” error. Why I’m getting this?

const options = {
    providerOptions: {
        google: {
            key: process.env.UPPYSERVER_GOOGLE_KEY,
            secret: process.env.UPPYSERVER_GOOGLE_SECRET
        },
        dropbox: {
            key: process.env.UPPYSERVER_DROPBOX_KEY,
            secret: process.env.UPPYSERVER_DROPBOX_SECRET
        },
    },
    server: {
        host: 'localhost:3000',
        protocol: 'http',
    },
    filePath: '/tmp/',
};

app.use(uppy.app(options));


// handle 404
app.use((req, res, next) => {
    return res.status(404).json({ message: 'Not Found' })
})

// handle server errors
app.use((err, req, res, next) => {
    console.error('\x1b[31m', err.stack, '\x1b[0m')
    res.status(err.status || 500).json({ message: err.message, error: err })
})

process.on("uncaughtException", function(err) {
    console.log(err)
});

const server = app.listen(3000)
uppy.socket(server, options)

screen shot 2018-08-15 at 10 50 49 screen shot 2018-08-15 at 10 49 57 screen shot 2018-08-15 at 10 50 16

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
goto-bus-stopcommented, Aug 16, 2018

Yeah absolutely 😅 Glad that worked!

0reactions
gorkiecommented, Aug 16, 2018

Fixed ! Thank you for your interest. I think you should add this to the documentation 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

authentication error - Dropbox Community
i created the app and got the app and secret keys from there, passed the keys to DropboxOAuth2FlowNoRedirect. after i got the url,...
Read more >
Dropbox Extension Error Codes - ServMask Helpdesk
Proxy authentication required. The client must first authenticate themselves with the proxy. Code: 408 'Request Timeout' Request timed out. The ...
Read more >
PKCE: What and Why? - Dropbox Tech Blog
Come learn about the PKCE OAuth flow! How it works, why it's valuable, and how to use it to authorize your Dropbox app....
Read more >
Global Flags - Rclone
They control the backends and may be set in the config file. ... rclone to work on shared folders --dropbox-token string OAuth Access...
Read more >
Embed a CLA Signing Page Using NodeJS with the Dropbox Sign ...
Get your CLAs signed easier using the Dropbox Sign API and GitHub API. ... information that should not be hardcoded like application keys...
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