TypeError: Cannot convert undefined or null to object at Function.entries
See original GitHub issueDescribe 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:
- Index this object
- Open Mini-dasboard
- Set the API key
- Mini-dasboard shows the error.
It also gives header is missing error.
Screenshots
MeiliSearch version: [e.g. v0.24.0]
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
Thank you for the report @fatihyildizhan !
@mdubus can you move this to the mini dashboard repo please 😃