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.

[bug] requestMappings in JSON_CONFIG not working as documented for docker

See original GitHub issue

First off, thanks so much for this project! I’m super-stoked to get it working, and to be able to strip a lot of custom work-arounds from a local dev environment ❤️

The thing I’m hitting is that I’m unable to use the standalone mode as described, specifically with requestMappings. I’ve confirmed that:

  • the config json is being read,
  • top-level config can be changed (e.g., interactiveLogin),
  • malformed tokenCallbacks entries cause the server not to start

BUT using the exact config json as described in the README does not seem to match and generate any sort of custom token response when hitting the appropriate issuer.

I’ve created a full reproduction here: https://github.com/patcon/mock-oauth2-repro

Any advice is appreciated! 🙌

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ybelMekkcommented, May 14, 2022

@patcon no need to apologies! thanks for bringing it up and engaging in the project 👍🏾

1reaction
patconcommented, May 14, 2022

Hm. I must have been seeing something else in my actual non-reproduction version, and my typo’d reproduction was a false lead…! But glad to have it working! (I was on an old version 0.3.6 just to try to see if it was consistent over time)

If I were to think what may have tipped me off: I was reading output logs, and maybe a warning clarifying that file was detected as set in envvar, but not found at the location? But that’s very minor…!

Thanks very much both, and apologies for the noise 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

oetl.sh can't find json config file · Issue #65 - GitHub
Hello. I am trying to import data from json file with ETL in my docker container. When running official command from Orentdb Docker...
Read more >
11 - Stack Overflow
It may be that the .docker folder and the .docker/json.config file is not owned by the current user. Try this: sudo chown $USER:docker ......
Read more >
jaegertracing/Lobby - Gitter
Hi, I'm having a problem getting some of my traces to show up in Jaeger UI... but only when running my app through...
Read more >
Configuring docker image with .json - Help - Caddy Community
The problem I'm having: There are two questions I couldn't figure out reading the documentation. The first is whether or not it is...
Read more >
docker inspect - Docker Documentation
Docker inspect provides detailed information on constructs controlled by Docker. By default, docker inspect will render results in a JSON array. For example ......
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