Algolia import Problame

I’m getting this error.
I provided the correct app ID and Algolia Secret. But why am I getting this error still now?
Here is the error:
Impossible to connect, please check your Algolia Application Id.

scout.php file:

‘algolia’ => [
‘id’ => env(‘ALGOLIA_APP_ID’, ‘xxxxxxxxx’),
‘secret’ => env(‘ALGOLIA_SECRET’, ‘xxxxxxxxxxxxxxxxxxxxxxx’),
],