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.

Wildcard in handler doesn't work

See original GitHub issue

Hi,

The wildcard for error code handlers doesn’t seem to work:

.on('success', cb)
.on('40*', function () {
    console.log('in 400 handler');
})

My code in this case is 403 and if I specify it explicitly, the handler gets called. But not with the 40*.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
krampstudiocommented, Dec 20, 2016

@ultamatt thanks to report it. I’ve fixed the samples.

0reactions
ultamattcommented, Dec 16, 2016

Bump. I also struggled with this for an hour or two before finding this. I’ll update your documentation if you’ll merge my pull.

*Edit: Actually, you should change it here: The Readme looks fine. http://krampstudio.com/aja.js/#samples

Read more comments on GitHub >

github_iconTop Results From Across the Web

ResourceHandler conflict with wildcards in Controllers
This issue is caused beause of the way that Spring handles requests from users. There are several HandlerMapping s and they are executed...
Read more >
Wildcard route handler not called - Google Groups
The behavior you're experiencing seems correct. In your first attempt, you have nothing in your URL path to match the actual wildcard itself....
Read more >
Error - No handler for type [wildcard] - Elastic Discuss
Hi, I'm trying to experiment with the wildcard field since i'm trying to perform queries over text fields that seem to fit perfectly...
Read more >
wildcard-api - npm
Wildcard uses the Fetch API and doesn't catch errors thrown by fetch() , allowing you to handle network errors as you wish. You...
Read more >
Wildcard collision handler · Issue #136 · viblo/pymunk - GitHub
Currently, the specific handler overrides the wildcard when a shape of type 2 is involved. In the doc, it says you need 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