# Development environment not working

**URL:** <https://community.forestadmin.com/t/development-environment-not-working/2248>\
**Category:** Help me!\
**Created:** [April 5, 2021, 7:51pm UTC](https://community.forestadmin.com/t/development-environment-not-working/2248 "2021-04-05T19:51:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![txtjournals](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@txtjournals](https://community.forestadmin.com/u/txtjournals)\
**Post date:** [April 5, 2021, 7:51pm UTC](https://community.forestadmin.com/t/development-environment-not-working/2248/1 "2021-04-05T19:51:40Z")

</div>

## Expected behavior

When switching to the “Development” environment, it loads.

## Actual behavior

“Our server encountered an error” is shown very briefly before being kicked back to the login page.

## Failure Logs

No error logs!

## Context

Confirmed that Admin Backend URL and FOREST\_ENV\_SECRET are correct and match what’s in .env. Loading [http://localhost:3310](http://localhost:3310) in browser shows “Your application is running”. No web logs at all when trying to load via UI, telling me that it’s not even calling my local Forest Admin instance.

- Express Version: 4.17.1
- Sequelize Version: 7.3.1
- Database Dialect: Postgres (SSL)
- Database Version: 12.2
- Project Name: Pharos

---

<div class="post-metadata">

**Author:** ![txtjournals](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@txtjournals](https://community.forestadmin.com/u/txtjournals)\
**Post date:** [April 5, 2021, 8:06pm UTC](https://community.forestadmin.com/t/development-environment-not-working/2248/2 "2021-04-05T20:06:47Z")

</div>

In debugging this some more, what’s really interesting is that when I go to switch to the development environment, the first request in the network inspector is to `/forest/authentication/logout`. Ultimately, this would explain why I’m getting kicked back to the login page. Why I’m being logged out just by trying to switch environments is beyond me.

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [April 6, 2021, 9:05am UTC](https://community.forestadmin.com/t/development-environment-not-working/2248/3 "2021-04-06T09:05:58Z")

</div>

Hello @txtjournals,

The call to /`forest/authentication/logout` logged you out of the current environment you were on and by switching on a new environment you should be able to see a request to `/forest/authentication` on the environment you try to log in. Can you show me the network logs of your browser dev tools and more especially the request that failed during the authentication process?

Regards,

---

<div class="post-metadata">

**Author:** ![txtjournals](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@txtjournals](https://community.forestadmin.com/u/txtjournals)\
**Post date:** [April 6, 2021, 7:37pm UTC](https://community.forestadmin.com/t/development-environment-not-working/2248/4 "2021-04-06T19:37:58Z")

</div>

Turns out my local environment just had a bad DB connection string, but that wasn’t previously showing itself because there was something cached in the browser. After being logged out of one environment (when trying to switch to dev), it was never actually making a request to my development issue before kicking me out. It wasn’t until I tried another browser (and subsequently cleared cache in the original browser) that it actually called my local environment.

What would have been cached in the UI that would have prevented my local environment from being called?
