# Problems getting the data

**URL:** <https://forum.robotframework.org/t/problems-getting-the-data/1610>\
**Category:** RequestsLibrary\
**Created:** [10 April 2021 21:33 UTC](https://forum.robotframework.org/t/problems-getting-the-data/1610 "2021-04-10T21:33:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Msoft2007](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Msoft2007](https://forum.robotframework.org/u/Msoft2007)\
**Post date:** [10 April 2021 21:33 UTC](https://forum.robotframework.org/t/problems-getting-the-data/1610/1 "2021-04-10T21:33:45Z")

</div>

Hello!

I am trying to convert a robot from a robocorp to a robot framework, at the moment everything is fine, but I have problems getting the data.

Error:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/03b8c36518f5f22880f825f6570a25840befea79.png)

my robot

\*\*\* Settings \*\*\*

Library Selenium2Library

Library RequestsLibrary

Library Requests

Library Collections

Suite Setup Create Session ofi ${BASE\_URL} verify=True

Library HttpLibrary.HTTP

#Library Json

# seteo la variables globales

\*\*\* Variables \*\*\*

${BASE\_URL\_TEMIS}= [https://dwtemisapp1.appdom.app.telecom.com.ar:444/Login.aspx?ReturnUrl=%2F](https://dwtemisapp1.appdom.app.telecom.com.ar:444/Login.aspx?ReturnUrl=%2f)

${BASE\_URL}= [http://10.75.145.81](http://10.75.145.81)

${GET\_OFICIOS}= api/oficio/index?filter[id\_status]=1&no\_page=true

${Descargar\_Archivos}= api/files/download

${GET\_TOKEN}= api/temis/token

${POST\_TEMIS\_UPDATE}= api/temis/update

\*\*\* Keywords \*\*\*

Setup

```
Create Session ofi ${BASE_URL} verify=True

```

# -

\*\*\* Keywords \*\*\*

Main

```
${launch}= Get Request Test

${launchs}= Set Variable ${launch.json()}

#Notebook Print ${launchs['data']}

Abrir Temis

foreach data ${launch}

```

# hacemos la peticion ajax

\*\*\* Keywords \*\*\*

#Peticion ajax get oficios nuevos

```
${response}= GET On Session ofi ${GET_ofiCIOS} /

Request Should Be Successful ${response}

Status Should Be 200 ${response}

[Return] ${response}

```

\*\*\* keywords \*\*\*

Get Request Test

```
  ${response}= GET On Session ofi ${GET_ofiCIOS} / expected_status=200

  #equest Should Be Successful ${response}

  #Status Should Be 200 ${response}

  [Return] ${response}

```

#\*\*\* Keyword \*\*\*

Setup

```
Create Session ofi ${BASE_URL} verify=True

```

Abrir Temis

```
open browser ${BASE_URL_TEMIS} chrome

```

\*\*\* Test Cases \*\*\*

Abrir Temis

```
open browser ${BASE_URL_TEMIS} chrome

```

#setup

Setup

```
Create Session ofi ${BASE_URL} verify=True

```

Get Request Test

```
  ${response}= GET On Session ofi ${GET_ofiCIOS} / expected_status=200

  Request Should Be Successful ${response}

  Status Should Be 200 ${response}

  [Return] ${response}

```

Main

```
${launch}= Get Request Test

${launchs}= Set Variable ${launch.json()}

```

foreach data

# [Arguments] ${response}

```
#${pretty_json}= To Json ${response.text} pretty_print=True

##${pretty_json}= To Json ${response.text} #pretty_json=True

#${pretty_json}= To Json ${resp.json()} ${response.text} #pretty_print=True

${getResponseJson}= Get Json Value ${resp.json} /RestResponse/result

${launch}= Set Variable ${resp.json()}

FOR ${robot} IN @{launch['data']}

    Cargar Datos ${robot}

```

Login

\*\*\* Keywords \*\*\*

Log In

```
Select from list by value id:ddlPerfiles C 

Input Text id:txtLegajo R000001

Input Password id:txtPassword P

Click Element id:btnLogin

sleep 5

#Wait Until Page Contains Element id:ctl00_btnNuevoOficio

Click Element id:ctl00_btnNuevoOficio

```

---

<div class="post-metadata">

**Author:** ![lucagiove](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/lucagiove/32/85_2.png) [@lucagiove](https://forum.robotframework.org/u/lucagiove)\
**Post date:** [17 April 2021 15:46 UTC](https://forum.robotframework.org/t/problems-getting-the-data/1610/2 "2021-04-17T15:46:02Z")

</div>

I don’t know where the Get Json Value come from. I normally use [https://robotframework-thailand.github.io/robotframework-jsonlibrary/JSONLibrary.html](https://robotframework-thailand.github.io/robotframework-jsonlibrary/JSONLibrary.html) for Json path.
