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.

Strange issue in v2.16.1-beta

See original GitHub issue

If I use that driver auth: require('@websanova/vue-auth/drivers/auth/bearer.js'),

Or

 auth: {
    request (req, token) {
      this.options.http._setHeaders.call(this,
        req, {
          Authorization: `Bearer ${token}`
        })
    },
    response ({data}) {
      // Get Token from response body
      return data
    }
  },

The error on the image bellow occurs.

Managed to escape the error and login, by removing token from second parameter (so I guess must be something to do with this parameter)

auth: {
    request(req) {
      this.options.http._setHeaders.call(this,
        req, {
          Authorization: `Bearer `
        })
    },
    response({
      data
    }) {
      // Get Token from response body
      return data
    }
  },

But browser keeps logging this xhr.js?ec6c:178 GET http://localhost:8080/auth/user 404 (Not Found)

https://i.imgur.com/GAnPvci.png

Basic driver works fine. (but, naturally, need to modify the backend api)

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
websanovacommented, Aug 21, 2017

Well, if you have some dud key, you could also just run $auth.logout() which should clear everything.

1reaction
terrygogocommented, Aug 17, 2017

@Kuchiriel , I faced same error and same error messages while I deploy vue-auth. For My case, I found the symptoms. It caused by login again while already loged in. Then the key in the local storage that contains the html parts of error message. And it may cause error of next login request. This strange key only deleted after restart chrome itself. So I “auth: false” for /login route. Hope this help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 16.1 Beta 2 Problems, Features, Bugs Fixed & More
Apple has released iOS 16.1 beta 2 (20B5050f)! Check out the new features, bugs fixed as well as new problems reported by our...
Read more >
Apple Releases iOS 16.1 Beta 2 With Excessive Copy and ...
According to Apple's release notes, iOS 16.1 beta 2 fixes several known issues. Some of these involved pairing issues with Matter ...
Read more >
Doctor Strange - Wikiwand
In issues #8–10 (May–September 1973), Strange is forced to shut down the Ancient One's mind, causing his mentor's physical death. Strange then assumes...
Read more >
Apple iOS 16.1 beta 2 fixes the annoying copy-and-paste bug ...
Furthermore, the beta also added a dedicated section for accessories that support the unified smart home standard called Matter. Currently, the ...
Read more >
iOS 16 Beta 2 - Bugs / Features / Fixes Megathread : r/iOSBeta
I haven't had that issue on even the first beta, things are cool on ... https://i.imgur.com/epgbA2f.jpg weird skinny battery circle shows up ......
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