Rest API v4_1 is not working with my new setup i.e. php 8.0, SuiteCRM 7.13

Hi @pgr facing the same issue , unable to get rest api work , tried the solution at REST API v2 issue with suitecrm7.13 and php8 - #8 by crmspace

Any suggestions would be helpful