# getVenue fails with 401

**URL:** https://community.mappedin.com/t/getvenue-fails-with-401/49
**Category:** Mappedin JS
**Created:** [June 5, 2024, 10:34pm UTC](https://community.mappedin.com/t/getvenue-fails-with-401/49 "2024-06-05T22:34:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tyler.c](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/tyler.c/32/66_2.png) [@tyler.c](https://community.mappedin.com/u/tyler.c)
#### Post date: [June 5, 2024, 10:34pm UTC](https://community.mappedin.com/t/getvenue-fails-with-401/49/1 "2024-06-05T22:34:25Z")

</div>

Hello!

I upgraded my map and received a key and secret, but when I try to load the SDK I get a bunch of 401 errors. Is there something else I need to do?

This is my code:

```ts
const venue = await getVenue({
	clientId: 'myCKey',
	clientSecret: 'mySecret',
	venue: 'myMapId',
});
const mapView = await showVenue(document.getElementById("app")!, venue);

```

I get many errors in the console and no map

 ![Screenshot 2024-06-05 at 6.28.52 PM](https://canada1.discourse-cdn.com/flex004/uploads/mappedin/original/1X/e88fca2b4debebecd39b2c23e630ea8a0b1259e2.png)

I checked I upgraded the right map. Do I need to enable it for the SDK?

---

<div class="post-metadata">

### Author: ![Zach](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/zach/32/70_2.png) [@Zach](https://community.mappedin.com/u/Zach)
#### Post date: [June 6, 2024, 2:39pm UTC](https://community.mappedin.com/t/getvenue-fails-with-401/49/2 "2024-06-06T14:39:06Z")

</div>

Hi Tyler,

Welcome to the forum! There are a few things you may have run into. To start, the code sample you’ve pasted is from Mappedin SDK v5. Version 5 does not support maps created using the Mappedin Editor at [Mappedin](https://app.mappedin.com/editor/). It can only display maps that are created using our enterprise mapping tools.

The solution is to ensure you are using Mappedin SDK version 6. The best way to begin is to follow our [Version 6 Getting Started Guide](https://developer.mappedin.com/web/v6/guides/getting-started/). Note that your map also has to have shareable turned on before you can use it in the SDK. The Getting Started guide walks through that process as well.

---

<div class="post-metadata">

### Author: ![tyler.c](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/tyler.c/32/66_2.png) [@tyler.c](https://community.mappedin.com/u/tyler.c)
#### Post date: [June 7, 2024, 6:38pm UTC](https://community.mappedin.com/t/getvenue-fails-with-401/49/3 "2024-06-07T18:38:52Z")

</div>

That was it, thanks!
