# Error when importing dataset to Rstudio

**URL:** <https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224>\
**Category:** usegalaxy.eu support\
**Tags:** rstudio\
**Created:** [June 18, 2021, 1:03pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224 "2021-06-18T13:03:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![feanor1914](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/feanor1914/32/2571_2.png) [@feanor1914](https://help.galaxyproject.org/u/feanor1914)\
**Post date:** [June 18, 2021, 1:03pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/1 "2021-06-18T13:03:05Z")

</div>

Hi everyone, when trying to import a dataset (large .csv file) from my active galaxy history to Rstudio with `gx_get(19056)` I get the following error:

> DEBUG:root:Host IP determined to be b’172.17.0.1\n’  
> DEBUG:root:TestURL url=[https://usegalaxy.eu](https://usegalaxy.eu) obj=False  
> DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): [usegalaxy.eu:443](http://usegalaxy.eu:443)  
> DEBUG:urllib3.connectionpool:[https://usegalaxy.eu:443](https://usegalaxy.eu:443) “GET /api/histories?key=###HTTP/1.1” 200 None  
> DEBUG:root:TestURL url=[https://usegalaxy.eu](https://usegalaxy.eu) state=success  
> DEBUG:root:Downloading gx=GalaxyInstance object for Galaxy at [https://usegalaxy.eu](https://usegalaxy.eu) history=0cd1246fe45a8830 dataset=19056  
> DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): [usegalaxy.eu:443](http://usegalaxy.eu:443)  
> DEBUG:urllib3.connectionpool:[https://usegalaxy.eu:443](https://usegalaxy.eu:443) “GET /api/histories/0cd1246fe45a8830/contents?key=###HTTP/1.1” 200 None  
> Traceback (most recent call last):  
> File “/usr/local/bin/get”, line 19, in   
> results = get( args.id, args.identifier\_type, args.history\_id )  
> File “/usr/local/lib/python3.8/dist-packages/galaxy\_ie\_helpers/ **init**.py”, line 199, in get  
> datatypes\_all.append({ds[identifier\_type]: ds[‘extension’] for ds in history})  
> File “/usr/local/lib/python3.8/dist-packages/galaxy\_ie\_helpers/ **init**.py”, line 199, in   
> datatypes\_all.append({ds[identifier\_type]: ds[‘extension’] for ds in history})  
> KeyError: ‘extension’

The dataset loads normally in my locally installed Rstudio.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 18, 2021, 5:52pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/2 "2021-06-18T17:52:46Z")

</div>

Hi @feanor1914

I also noticed a problem with all three of the `gx_` commands at both [usegalalxy.eu](http://usegalalxy.eu) and [usegalaxy.org](http://usegalaxy.org) late yesterday, but haven’t had a chance to follow up yet.

Let’s ask the developers if they know what is going on at Gitter. They may post back here or at Gitter, and feel free to join the chat. [galaxyproject/dev - Gitter](https://gitter.im/galaxyproject/dev?at=60ccdd2287848634af29dd0b)

---

<div class="post-metadata">

**Author:** ![feanor1914](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/feanor1914/32/2571_2.png) [@feanor1914](https://help.galaxyproject.org/u/feanor1914)\
**Post date:** [June 18, 2021, 6:35pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/3 "2021-06-18T18:35:11Z")

</div>

Hi @jennaj

Thanks for responding, I forgot to mention that uploading the zipped dataset with the “upload” button in the Rstudio server failed as well returning a “unexpected response from server” message.

---

<div class="post-metadata">

**Author:** ![feanor1914](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/feanor1914/32/2571_2.png) [@feanor1914](https://help.galaxyproject.org/u/feanor1914)\
**Post date:** [June 18, 2021, 7:12pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/4 "2021-06-18T19:12:10Z")

</div>

@jennaj after seeing the people at Gitter saying `gx_*` worked for them, I tried again (just now) and managed to fetch my data. Not sure if it’s related but before trying again I created a new history with my dataset and a new Rstudio environment. Hope this helps!

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 18, 2021, 7:18pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/5 "2021-06-18T19:18:27Z")

</div>

Glad worked out! No idea what was wrong originally but seems working on .org and .eu now. Maybe it was a data compression issue for you – or maybe the IE environment got corrupted. But if working now considering it all good.

I was doing something else (and will be doing more today). That involves these same commands. I’ll also use a fresh session.

Thanks for all the followup! 🙂

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [October 13, 2022, 9:55pm UTC](https://help.galaxyproject.org/t/error-when-importing-dataset-to-rstudio/6224/6 "2022-10-13T21:55:14Z")

</div>

Closed on October 13, 2022, 9:55pm UTC


