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.

Create Client Error For Bundled JS

See original GitHub issue

Braintree.client.create({ authorization: ‘token’ }, (err, clientInstance) => { //client instance not created })

I’m wondering why I always getting error on my bundled app. I’m using Webpack for bundling. On dev mode, there is no error and I can get the client instance. I’m sure the token is passed because I debug it.

{name: "BraintreeError", code: "CLIENT_INVALID_AUTHORIZATION", message: "Authorization is invalid. Make sure your client token or tokenization key is valid.", type: "MERCHANT", details: undefined}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Apr 10, 2017

@tehnomaag The atob issue you pointed out was fixed in 3.12.0

0reactions
crookedneighborcommented, Apr 3, 2017

@tehnomaag Thanks for pointing this out. I’m working on a fix now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack not creating bundle.js or error messages
1 Answer 1 · When running npm run serve , I get Module parse failed: Unexpected token (2:5) You may need an appropriate...
Read more >
API - esbuild
#Build API. The build API call operates on one or more files in the file system. This allows the files to reference each...
Read more >
Development | webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
Capturing JavaScript Errors - Sentry
You have a single page JavaScript application, and unlike your API server, the client-side application doesn't generate error logs.
Read more >
Handle loading errors & fallback with HtmlWebpackPlugin
First of all, logically we will not be able to do anything in the bundle.[hash].js , because this file will fail to load...
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