# Rails integration fails at first step due to authentication error

**URL:** <https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940>\
**Category:** Help me!\
**Created:** [February 25, 2021, 8:58am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940 "2021-02-25T08:58:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![benwhite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/benwhite/32/1535_2.png) [@benwhite](https://community.forestadmin.com/u/benwhite)\
**Post date:** [February 25, 2021, 8:58am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/1 "2021-02-25T08:58:08Z")

</div>

## Expected behavior

Tried to use the new Rails installation method but we immediately come up against a 500 server error. Looks like the server is receiving a `rendering_id` but expecting `renderingId` ?

## Actual behavior

The admin portal errors and in the network panel you can see why (see below).

## Failure Logs

According to the network panel we can see the forestadmin API says:

```javascript

{
    "errors": [
        {
            "status": 500,
            "detail": "Authentication request must contain a renderingId"
        }
    ]
}

```

Server logs:

```javascript
app | Started POST "/forest/authentication" for at 2021-02-25 08:52:32 +0000
app | Processing by ForestLiana::AuthenticationController#start_authentication as */*
app | Parameters: {"rendering_id"=>"83806"}
app | Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)

```

## Context

Please provide any relevant information about your setup.

- Package Version: forest\_liana 6.0.0

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [February 25, 2021, 9:18am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/2 "2021-02-25T09:18:23Z")

</div>

Hi @benwhite !  
There are issues with de v6 for now, we are working on them !  
I can’t reproduce your error, the `rendering_id` should be parse into `renderingId` by the ActionController if I’m not mistaken 🤔  
I guess you followed [this](https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-rails/upgrade-to-v6) documentation ?

---

<div class="post-metadata">

**Author:** ![benwhite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/benwhite/32/1535_2.png) [@benwhite](https://community.forestadmin.com/u/benwhite)\
**Post date:** [February 25, 2021, 9:27am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/3 "2021-02-25T09:27:36Z")

</div>

Ah okay. I followed the images documentation here which is why I ended up with 6.0.0

[https://docs.forestadmin.com/documentation/getting-started/installation#install-using-a-rails-app-as-your-datasource](https://docs.forestadmin.com/documentation/getting-started/installation#install-using-a-rails-app-as-your-datasource)

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [February 25, 2021, 9:38am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/4 "2021-02-25T09:38:25Z")

</div>

You can follow the upgrade note I shared to try and make it work 🙂  
We are working on fixing the project creation on v6 (it doesn’t create the required environment variables).

---

<div class="post-metadata">

**Author:** ![MatthiasRichard](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matthiasrichard/32/4791_2.png) [@MatthiasRichard](https://community.forestadmin.com/u/MatthiasRichard)\
**Post date:** [July 18, 2022, 6:53am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/5 "2022-07-18T06:53:15Z")

</div>

Hello,

I have exactly the same error, but I’m using version 7.6.7 of the forest-liana gem, and just created the project by following the instructions after signing up.

Any idea on how to fix this?

thanks

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [August 1, 2022, 8:12am UTC](https://community.forestadmin.com/t/rails-integration-fails-at-first-step-due-to-authentication-error/1940/6 "2022-08-01T08:12:09Z")

</div>

@MatthiasRichard could you open another thread in order to help you ? 🙏
