# Uncaught table\_name is a required path param

**URL:** <https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703>\
**Category:** REST API\
**Created:** [November 2, 2015, 8:03am UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703 "2015-11-02T08:03:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickyleecas](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rickyleecas](https://community.dreamfactory.com/u/rickyleecas)\
**Post date:** [November 2, 2015, 8:03am UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/1 "2015-11-02T08:03:42Z")

</div>

When i was testing the api docs GET /db/\_table/{table\_name} getRecords() - Retrieve one or more records, it was found that i cant have proper response 😓:

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/a0f02f6bfd3e6ce9f267eb5f2776bc3cf7c9f688.png) why was this happen? thanks

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [November 2, 2015, 2:59pm UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/2 "2015-11-02T14:59:48Z")

</div>

Your console shows many 401 unauthorized errors. It is entirely likely that your session has expired. Try logging out and logging back in. If this does not resolve the issue, check the Network tab of the developer console for any failed API calls and post back the text of the error.

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [November 2, 2015, 3:14pm UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/3 "2015-11-02T15:14:40Z")

</div>

I also see “table\_name” is required–have you selected a table name from the drop-down list? (This is cut off in the screenshot.)

---

<div class="post-metadata">

**Author:** ![rickyleecas](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rickyleecas](https://community.dreamfactory.com/u/rickyleecas)\
**Post date:** [November 3, 2015, 3:15am UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/4 "2015-11-03T03:15:38Z")

</div>

In fact i cant select any table from the drop-down list 😥

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/ba404e632d6dc1bcd8b9b8d5bda9115b4f1ac560.png)  
and when i press “try it out” , the loading bar keep loading and the error " Uncaught table\_name is a required path param" appear.

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [November 3, 2015, 3:20pm UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/5 "2015-11-03T15:20:44Z")

</div>

You’ll want to do a Get Tables (the call above Get Records) with refresh = true.  
Then you’ll need to refresh the page for that dropdown table list to be populated.

---

<div class="post-metadata">

**Author:** ![rickyleecas](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rickyleecas](https://community.dreamfactory.com/u/rickyleecas)\
**Post date:** [November 4, 2015, 2:59am UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/6 "2015-11-04T02:59:14Z")

</div>

I tried to do a Get Table calls ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/185b0df28f9a73acb32c3408d0a1d573d90f16d2.png)  
but it’s found that the request URL will direct to “[http://127.0.0.1:80/api/v2/db/\_table?refresh=true](http://127.0.0.1:80/api/v2/db/_table?refresh=true)”

which is the localhost but not the server ip. What is the reason of causing this? Many thanks.

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [November 4, 2015, 7:10pm UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/7 "2015-11-04T19:10:01Z")

</div>

what type of installation is this? (AWS, Azure, private windows server, etc?)

I’m not sure why the API calls would revert to 127.0.0.1 with Swagger (API Docs) unless the instance was initially accessed via the 127.0.0.1 IP. Swagger writes that IP to the cache file. You can try clearing your cache (Config-\>Cache) and then refreshing the site.

If that doesn’t work, try adding a CORS entry for for your public IP, like this screenshot:

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/51766dad6a54b2e68c1e81928e36ca4867ca1283.png)

---

<div class="post-metadata">

**Author:** ![rickyleecas](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rickyleecas](https://community.dreamfactory.com/u/rickyleecas)\
**Post date:** [November 5, 2015, 6:53am UTC](https://community.dreamfactory.com/t/uncaught-table-name-is-a-required-path-param/1703/8 "2015-11-05T06:53:17Z")

</div>

It works! Thank you! 😀
