# NextJS 13 on Netlify. Data fetch causes A client-side exception has occurred

**URL:** <https://community.prismic.io/t/nextjs-13-on-netlify-data-fetch-causes-a-client-side-exception-has-occurred/13290>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [June 10, 2023, 12:52pm UTC](https://community.prismic.io/t/nextjs-13-on-netlify-data-fetch-causes-a-client-side-exception-has-occurred/13290 "2023-06-10T12:52:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pali](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pali](https://community.prismic.io/u/pali)\
**Post date:** [June 10, 2023, 12:52pm UTC](https://community.prismic.io/t/nextjs-13-on-netlify-data-fetch-causes-a-client-side-exception-has-occurred/13290/1 "2023-06-10T12:52:48Z")

</div>

I've just created a very simple nextjs 13 site and used the getByUID to fetch a page from Prismic. Works perfect on local, but deployed on Netlify the page returns a 500 with 'A client-side exception has occurred'. I've tried narrowing this down, but it just seems to be when attempting to fetch any data it fails here.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [June 13, 2023, 8:27pm UTC](https://community.prismic.io/t/nextjs-13-on-netlify-data-fetch-causes-a-client-side-exception-has-occurred/13290/3 "2023-06-13T20:27:39Z")

</div>

Hello @pali

Welcome to the Prismic community, and thanks for reaching out to us.

To debug it more, I need minimal reproductions and logs. Can you share these with me?

Thanks,  
Priyanka
