-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example configurations break proxying #410
Comments
I can't reproduce this on preview4 or master on Windows. Maybe it's a mac specific config binding issue? That would be odd. If you set the "Microsoft" log category to "Debug" you should see something like this at startup:
Note the destination name. What do you see in your logs? That should match what's reported in the exception here:
|
Hmm, I just tried it again on my dev box and I can't reproduce it there either. Difference is that on my dev box I'm using just the appsettings.development.json file. But in my test environment I'm loading config from Consul using Winton.Extensions.Configuration.Consul which plugs into ASP.NET Core's configuration framework. My guess is that there's something funky going on there, although I think I've seen this combination work properly before. I'll file an issue with that library to see if they can figure out what's going on here. I don't think its a YARP problem at the moment. If that changes I'll re-open this issue. |
@Tratcher Turns out this was indeed an issue in the library I was using. They are working on a fix and I've already verified that the fix works. Sorry to bother you with this. |
Glad you got it sorted. |
Describe the bug
I was following along with the example configurations provided in the docs and I received errors when trying to invoke one of my endpoints. Specifically I get the error:
After doing some digging I found out that this is caused by the name of the destination. For example, using the following config (as seen in the docs) yields the error:
However, changing the name of the destination to not include the slash and the error goes away. I'm pretty sure this used to work earlier, but I'm guessing something has changed since preview 3 when I last tried it. Perhaps it has to do with #357 but I'm not sure.
To Reproduce
Follow the docs to the letter and you should be able to reproduce this.
Further technical details
Version: 1.0.0-preview.4
Platform: macOS
The text was updated successfully, but these errors were encountered: