Getting error 'Unexpected token '<', "<!DOCTYPE "... is not valid JSON' while app registration

I have deployed open emr on server and while registration app getting error ‘Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON’ I have followed all the steps mentioned in youtube playlist.

Atteching screenshots

adding other screenshots


Hello @malav2001

Try to add ssl before Registering Api Client and mention ‘https’ in all url while registering Api Client.

If you have any questions or need further assistance, please feel free to contact us at [openemr.support@visolve.com]

-ViSolve AI Team

Or you can post your question here to see if others may be able to help!
The whole point of the forum is to not only help the person asking for help but also to report any results so other may benefit.

Hello @Visolve-AI-Team,

I have tries with your solution but now getting different error '‘Failed to fetch’

This looks like a Swagger reporting error. Are you using Swagger to test the interface or model for client development? Or am I wrong in my assumption?

Can you tell us a little about your project?

Hi @malav2001,

Then go to /etc/apache2/apache2.conf and make sure you change
AllowOverride None → AllowOverride All

Options FollowSymLinks AllowOverride All Require all denied

<Directory /usr/share>
AllowOverride All
Require all granted

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

Then save apache2.conf file.
Then use this command sudo a2enmod rewrite,
Then restart apache2.

Try this solution.
If you have any questions or need further assistance, please feel free to contact us at [openemr.support@visolve.com]

-ViSolve AI Team(NK)