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.

Issue with [object Object] as instance id

See original GitHub issue

App info:

Spring boot version: 2.2.7.RELEASE Sprint boot admin version: 2.2.3 spring-cloud.version: Hoxton.SR4

I’m registering my applications to spring boot admin server using eureka discovery. Unfortunately instance ids on spring boot admin server are [object Object] which seems like a javascript issue of UI.

issue image

Therefore I cant see any of the metrix, mapping or else. When I open an instance, the URL is something like this: http://localhost:8081/instances/[objec Object]/details

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
sniip-codecommented, Sep 11, 2020

This worked for me… 😃 It sets the default object mapper for Spring… and seems to sort the issue out…

@Configuration
class ApplicationConfiguration implements WebMvcConfigurer {
    @Bean(name = "jsonMapper")
    @Primary
    public ObjectMapper jsonMapper() {
        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new AdminServerModule(new String[]{".*password$"}));
        return mapper;
    }
    @Override
    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
        converters.add(new MappingJackson2HttpMessageConverter(jsonMapper()));
    }
}
3reactions
joshistecommented, Jun 5, 2020

You could use the AdminServerModule jackson module added in 2.2.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB43677: "Error: Object with ID xxx and type 29 (DB Instance ...
This technical note describes an issue that occurs because of a missing reference to a database instance.
Read more >
javascript - What does [object Object] mean? - Stack Overflow
It means the datatype of what you're returning is an Object. – user1385191. Jan 20, 2011 at 17:08 ; Out of interest: what...
Read more >
Instance ID problem - Unity Forum
Im using the child GameObjects as triggers. I need to get the parent GOs InstanceID. Problem is, the same objects InstanceID is different ......
Read more >
How to identify Instance ID of monitored object
Is there a PowerShell command I can use to identify the Display Name of the object referenced by the Instance ID GUID in...
Read more >
VM Instance Identifier Question - ServiceNow Community
This problem occurs. ... The Identifier for VM Instance shows ONLY Object ID. ... The identifier for the table only requires Object ID, ......
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