# About the loading problem of \`Cesium3DTileset(options) url\`

**URL:** <https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468>\
**Category:** CesiumJS\
**Created:** [September 28, 2021, 8:38am UTC](https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468 "2021-09-28T08:38:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![puxiao](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/puxiao/32/6125_2.png) [@puxiao](https://community.cesium.com/u/puxiao)\
**Post date:** [September 28, 2021, 8:38am UTC](https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468/1 "2021-09-28T08:38:02Z")

</div>

I tried two different ways to create tileset.

```auto
const assetId = 8564
let tileset: Cesium3DTileset

//------ code 1 -------

tileset = new Cesium3DTileset({
    url: IonResource.fromAssetId(assetId )
})

//------ code 2 -------

const ionResource = IonResource.fromAssetId(modelData.assetId)
ionResource.then(
    (resource) => {
        tileset = new Cesium3DTileset({
            url: resource.url
        })
    }
)

```

`code 1`: Successfully loaded and displayed

`code 2`: Failed to load, got 401 or 404

Why?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [October 12, 2021, 8:37pm UTC](https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468/2 "2021-10-12T20:37:25Z")

</div>

@puxiao

Thank you for your question! The issue with the second code snippet is that the `resource.url` object is not being updated correctly. Thus when you try to use it as a URL, you get an error indicating that the compiler was not able to find the resource.

-Sam

---

<div class="post-metadata">

**Author:** ![puxiao](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/puxiao/32/6125_2.png) [@puxiao](https://community.cesium.com/u/puxiao)\
**Post date:** [October 13, 2021, 1:23am UTC](https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468/3 "2021-10-13T01:23:52Z")

</div>

Thank you for your answer.

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [October 15, 2021, 3:45am UTC](https://community.cesium.com/t/about-the-loading-problem-of-cesium3dtileset-options-url/15468/4 "2021-10-15T03:45:47Z")

</div>

@puxiao

Of course! I am happy to help out 😀

Please let me know if you have any other questions.

-Sam
