Hello @Tigor Sinuraja,
Can you please let me know if the API permissions under Application Permissions are added and the consent is granted for the tenant. This error can also occur if the required API permissions are not consented for the specific scope.
Also, try to fetch the token using the below scope-
scope = "https://api.fabric.microsoft.com/.default"
And also, can you look for the application based on {client-id}. You can do this by looking in the Enterprise Apps. Ensure Application Type is set to All and click Apply. Search for the app if it exists under Enterprise applications.
I am also sending you a private message for further troubleshooting if the above did not work. Please revert back in the private message so that we can troubleshoot further.