GithubHelp home page GithubHelp logo

Comments (6)

bart-vmware avatar bart-vmware commented on July 23, 2024

I suspect there's something wrong with your app configuration layer, or it executes too late. I'm unable to reproduce this against Steeltoe 3.x. I've tried the following:

  1. Open https://github.com/SteeltoeOSS/Samples/blob/main/Discovery/src/FortuneTeller.sln, set Fortune-Teller-Service as startup project
  2. Add the following line to Program.cs, between .AddCloudFoundryConfiguration() and .AddAllActuators():
    ConfigureAppConfiguration(builder => builder.AddInMemoryCollection(new Dictionary<string, string>
    {
        { "Eureka:Instance:InstanceId", "some" }
    }))
  3. Start Eureka docker container
  4. Select the Fortune-Teller-Service launch profile, run the project, and navigate to http://localhost:8761/eureka/apps
  5. The registered app shows up with Instance ID "some", see below:
    image

Can you provide reproduction steps, so it can be reproduced and debugged?

from steeltoe.

thompson-tomo avatar thompson-tomo commented on July 23, 2024

i know that it is not an issue with config layer ordering as if I change the casing it correctly resolves it.

Would it be helpful if I make a basic repo branch rather than try an describe it?

from steeltoe.

bart-vmware avatar bart-vmware commented on July 23, 2024

I would prefer if you try to reproduce the problem with our sample, gradually adding parts from your app until it breaks.

from steeltoe.

thompson-tomo avatar thompson-tomo commented on July 23, 2024

Sure thing will do that

from steeltoe.

thompson-tomo avatar thompson-tomo commented on July 23, 2024

hmm, this is interesting. I have brought across my entire configuration layer and can't reproduce it. Changing the casing still results in it working. Maybe some serialisation behaviour differs? But will need to look into this further.

from steeltoe.

bart-vmware avatar bart-vmware commented on July 23, 2024

Thanks for investigating. I'm closing this, as it doesn't seem to be a Steeltoe issue. Feel free to open a new issue when you've identified what's going on.

from steeltoe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.