# Specific Prismic Env returns Status Code 500 on Gridsome integration

**URL:** <https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303>\
**Category:** Developing with Prismic\
**Created:** [December 21, 2020, 2:16pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303 "2020-12-21T14:16:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![algemeen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/algemeen/32/935_2.png) [@algemeen](https://community.prismic.io/u/algemeen)\
**Post date:** [December 21, 2020, 2:17pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/1 "2020-12-21T14:17:00Z")

</div>

Hi @phil, @Levi, @Priyanka, @fares,@sam,

Two colleagues and I were working on a project which uses Gridsome, GraphQL in combination with Prismic. At some random point this morning everyone that was working on it, got a status code 500 when trying to run the application locally with 'gridsome develop'. When we change our environment credentials to the production prismic environment, everything runs fine, but the development API seems broken.

Anyone has gotten this issue and knows a solution?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/b/b636c11299b8b5ce561ea87594e13659ca3e7975.png)

Also our netlify build fails with the same error message:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/e/e21f95d8770cf591d58af87e72ee9e365608b237.png)

Greetings,  
Jordy

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 21, 2020, 6:22pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/2 "2020-12-21T18:22:31Z")

</div>

Hey, welcome to the Community.

Have you tested your API response separately? If it's successful maybe it's not related to the GraphQL endpoint of your repo.

Could you share with me the URL of your repo?

---

<div class="post-metadata">

**Author:** ![algemeen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/algemeen/32/935_2.png) [@algemeen](https://community.prismic.io/u/algemeen)\
**Post date:** [December 22, 2020, 7:02am UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/4 "2020-12-22T07:02:18Z")

</div>

@Pau the URL of our repo is: [waterluxe-dev.prismic.io](http://waterluxe-dev.prismic.io)

---

<div class="post-metadata">

**Author:** ![algemeen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/algemeen/32/935_2.png) [@algemeen](https://community.prismic.io/u/algemeen)\
**Post date:** [December 22, 2020, 11:04am UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/5 "2020-12-22T11:04:16Z")

</div>

Issue is fixed, the Regex for the choices in slices was not valid for one slice. I do want to say that there was no error give and we could save the custom type, the JSON was actually valid. But apparently there some rules to the names you give your slice choices. The issue was the name of a slice choice: "Page banner", which should be "page\_banner".

Anyways, it's solved now..

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 22, 2020, 4:29pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/6 "2020-12-22T16:29:11Z")

</div>

Ok thanks for sharing this with us. If you have any additional questions let us know 🌟

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 23, 2020, 4:29pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/7 "2020-12-23T16:29:18Z")

</div>

closed on December 23, 2020, 4:29pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:48pm UTC](https://community.prismic.io/t/specific-prismic-env-returns-status-code-500-on-gridsome-integration/3303/8 "2021-12-09T16:48:22Z")

</div>

Opened on December 9, 2021, 4:48pm UTC


