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.

TypeError: Cannot convert undefined or null to object at Function.entries

See original GitHub issue

Describe the bug Mini-dashboard gives an error after indexing via C# API an object like this. But, properties are not null. Also, I am able to search with the API. Only the dashboard is not working.

public class Bodrum
{
  public string Yalikavak { get; set; }
  public string Istanbul { get; set; }
  public int Ankara { get; set; }
  public int Biga { get; set; }
  public IEnumerable<string> Izmir { get; set; }
  public IEnumerable<string> Fethiye { get; set; }
}

To Reproduce Steps to reproduce the behavior:

  1. Index this object
  2. Open Mini-dasboard
  3. Set the API key
  4. Mini-dasboard shows the error.

It also gives header is missing error.

Screenshots dashboard error

MeiliSearch version: [e.g. v0.24.0]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fatihyildizhancommented, Dec 1, 2021

@mdubus I changed my model’s property name and fixed my problem. But, I think this is an issue and can happen to someone else too. So, maybe you should fix it. That’s why I re-opened the issue.

1reaction
MarinPostmacommented, Nov 30, 2021

Thank you for the report @fatihyildizhan !

@mdubus can you move this to the mini dashboard repo please 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot convert undefined or null to object - Stack Overflow
Generic answer. This error is caused when you call a function that expects an Object as its argument, but pass undefined or null...
Read more >
Cannot convert undefined or null to Object in JavaScript
The "Cannot convert undefined or null to Object" error occurs when we pass a null or an undefined value to a function that...
Read more >
Object.keys(null) possible - cannot convert undefined or null to ...
I think the test will go inside the onConnected() function present in the packages/ddp-client/test/livedata_connection_tests.js file, not sure ...
Read more >
Cannot convert undefined or null to object at Function.entries
I noticed that whenever I get the concerned error (TypeError: Cannot convert undefined or null to object at Function. entries), for some reason...
Read more >
Cannot convert undefined or null to object - YouTube
JavaScript : How to resolve TypeError : Cannot convert undefined or null to object [ Gift : Animated Search Engine ...
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