After upgrade to Heroku 22, can't access data

Hello,

After upgrading to Heroku 22 Forest shows “The request to your server either failed or returned invalid data.” while server is running well. I’m not sure how to look for more logs…

I have 404 error on https://lenouvelespritpublic.herokuapp.com/forest/Abonne?timezone=Europe%2FParis&fields[Abonne]=id%2Ctitle%2Clien%2Ctitle1%2Cintro1%2Ctitle2%2Cintro2%2Ccreated_at%2Cupdated_at&page[number]=1&page[size]=15&sort=-id

Update: I’m seeing in server logs: Forest API returned an HTTP error 424

Im running on Ruby on Rails

2023-06-12T08:26:18.288632+00:00 app[web.1]: [e98ba883-8a97-4726-8cb1-8c03d29b5501] Parameters: {“timezone”=>“Europe/Paris”, “fields”=>{“Abonne”=>“id,title,lien,title1,intro1,title2,intro2,created_at,updated_at”}, “page”=>{“number”=>“1”, “size”=>“15”}, “sort”=>“-id”, “collection”=>“Abonne”}
2023-06-12T08:26:18.309586+00:00 app[web.1]: [2023-06-12 08:26:18] Forest :deciduous_tree::deciduous_tree::deciduous_tree: Cannot retrieve the permissions from the Forest server.
2023-06-12T08:26:18.309660+00:00 app[web.1]: [2023-06-12 08:26:18] Forest :deciduous_tree::deciduous_tree::deciduous_tree: Which was caused by:
2023-06-12T08:26:18.309754+00:00 app[web.1]: [2023-06-12 08:26:18] Forest :deciduous_tree::deciduous_tree::deciduous_tree: Forest API returned an HTTP error 424
2023-06-12T08:26:18.309959+00:00 app[web.1]: [2023-06-12 08:26:18] Forest :deciduous_tree::deciduous_tree::deciduous_tree: /app/vendor/bundle/ruby/3.2.0/gems/forest_liana-8.0.8/app/services/forest_liana/ability/fetch.rb:11:in get_permissions' 2023-06-12T08:26:18.309959+00:00 app[web.1]: /app/vendor/bundle/ruby/3.2.0/gems/forest_liana-8.0.8/app/services/forest_liana/ability/permission.rb:71:in block in get_user_data’

Hi @CoincoinNico,

Did you upgrade your agent version in the meantime?
It looks like your are using the latest major version that stopped the support of the old permission system.
More info available here:

Can you please share your project informations to let us check your configuration on our end :pray:

Thank you.

I confirm that it looks like you upgraded from v7 to v8 and are still using the old roles system that is not compatible with v8.

Please read this dedicated documentation to migrate to Roles v2.

Alternatively, you can decide to rollback to v7.

I hope it helps.