# MangohRed problem App httpGet

**URL:** <https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673>\
**Category:** mangOH Red\
**Created:** [June 16, 2020, 4:37pm UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673 "2020-06-16T16:37:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuelrol](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@manuelrol](https://mangoh.discourse.group/u/manuelrol)\
**Post date:** [June 16, 2020, 4:37pm UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/1 "2020-06-16T16:37:15Z")

</div>

A modification was made to the httpGet example using a timer that runs the le\_data\_Request () function every 5 seconds. This application is compiled and runs on a  
wp7607 modem connected in a mangohred and using the command logread -f to check the report of the application

trouble:  
After 85 minutes that the application is working correctly, the program reports the following line:

Jun 13 05:24:33 swi-mdm9x28-wp user.warn Legato: -WRN- | posDaemon [1035] / le\_pa\_gnss T = unknown | pa\_gnss\_qmi.c PositionHandler () 1537 | Bad position indication  
Jun 13 05:22:03 swi-mdm9x28-wp user.warn Legato: -WRN- | posDaemon [1035] / le\_pa\_gnss T = unknown | pa\_gnss\_qmi.c PositionHandler () 1537 | Bad position indication

and it stays in an infinite loop calling that line every 5 seconds

Firmware version legato 20\_04

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 16, 2020, 11:14pm UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/2 "2020-06-16T23:14:30Z")

</div>

Why do you need to call le\_data\_Request() so frequently?

---

<div class="post-metadata">

**Author:** ![manuelrol](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@manuelrol](https://mangoh.discourse.group/u/manuelrol)\
**Post date:** [June 16, 2020, 11:47pm UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/3 "2020-06-16T23:47:37Z")

</div>

That we need to constantly update the get of a custom URL

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 17, 2020, 12:11am UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/4 "2020-06-17T00:11:00Z")

</div>

Then you don’t need to call this api().  
Just call curl api is ok.

---

<div class="post-metadata">

**Author:** ![manuelrol](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@manuelrol](https://mangoh.discourse.group/u/manuelrol)\
**Post date:** [June 20, 2020, 12:53pm UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/5 "2020-06-20T12:53:19Z")

</div>

As I suggested, I have already tried it and still giving the same problem any idea?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 22, 2020, 1:39am UTC](https://mangoh.discourse.group/t/mangohred-problem-app-httpget/4673/6 "2020-06-22T01:39:43Z")

</div>

have you tried the curl command in console and see if this is only happening to legato application?
