Author Topic: Error requesting fuel **SOLVED - temporary fix**  (Read 4412 times)

JimmyJr1981

  • Newbie
  • *
  • Posts: 4
Error requesting fuel **SOLVED - temporary fix**
« on: June 05, 2024, 09:08:22 pm »
Hi,

today I've encountered a strange problem (it was reproduceable 3 times): When requesting the fueltruck at LGAV couatl quits and wants a restart. After having a look in the couatl.err it looks like it couldn't load the fuel price and therefore a variable is wrong. This is what the last 10 lines look like:

channel.balance =  -1
emulateText_MSFS [GSX] Refueling service requested 2.0
emulateText_MSFS [GSX] Fuel Truck is on its way 2.0
emulateMenu_MSFS
Fuel price set from EIA.gov
Fuel price =  None
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'LGAV', 'Requested assistance services at': 'Gate B 40', 'User Pos': (37.941200028291505, 23.95130282116149, 91.7707 m, 2.84717 m, 38.773900098128784, 0.0010844535843259615, 0.001745329238474369, -0.00026673433244689426, 3.18211187210083, 1.0)}

--> The website EIA.gov was indeed not reachable. But does this need to crash GSX?
« Last Edit: June 05, 2024, 11:22:55 pm by virtuali »

mucramp1991

  • Newbie
  • *
  • Posts: 3
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #1 on: June 05, 2024, 09:14:12 pm »
I have the exact same Problem but just in EDDM

fillikirch

  • Newbie
  • *
  • Posts: 2
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #2 on: June 05, 2024, 09:17:05 pm »
Having the same exact issue right here at FALA (Lanseria in South Africa). When i did a flight earlier this day everything was fine. Just did a live update to see if it fixes the issue but it did not. Seriously what does GSX need the current fuel price for.
« Last Edit: June 05, 2024, 09:20:07 pm by fillikirch »

FerrevmVnion

  • Jr. Member
  • **
  • Posts: 88
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #3 on: June 05, 2024, 09:34:39 pm »
Yes. its not the Airport... there is no Fuel Price ..at no airport worldwide but GSX doesnt accept "none" as a price (it has to we a string (none is a string....) or a number. weired.... better error handling would be nice when the fuel price cant be parsed out from ??? .... we dont need the price. just fuel.

Fuel price set from EIA.gov
Fuel price =  None
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'EDDM', 'Requested assistance services at': 'Gate 263', 'User Pos': (48.35004462431915, 11.798606601421843, 452.822 m, 2.84706 m, 174.18954638451572, 0.0008634449939989988, 0.001745329238474369, 0.00015299878348717632, 3.18211187210083, 1.0)}
« Last Edit: June 05, 2024, 09:38:48 pm by FerrevmVnion »

disco79stu

  • Sr. Member
  • ****
  • Posts: 339
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #4 on: June 05, 2024, 09:40:00 pm »
Just happened to me too at EDDM although YESTERDAY. all ways fine at that very same airport.

couatl v4.8 (build 5421)
panic log started on Wed Jun  5 21:37:00 2024

problem raised by addon <unknown>
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'EDDM', 'Requested assistance services at': 'Apron 1 East | Gate 118', 'Requested parking services to': 'Apron 1 East | Gate 118', 'User Pos': (48.3499667123836, 11.783653967697186, 452.812 m, 2.85147 m, 83.40972292364832, 0.0010727424480492832, 0.001745329238474369, 0.00045202351140631673, 3.18211187210083, 1.0)}

fillikirch

  • Newbie
  • *
  • Posts: 2
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #5 on: June 05, 2024, 09:43:31 pm »
Yes. its not the Airport... there is no Fuel Price ..at no airport worldwide but GSX doesnt accept "none" as a price (it has to we a string (none is a string....) or a number. weired.... better error handling would be nice when the fuel price cant be parsed out from ??? .... we dont need the price. just fuel.

Where do i find the __init__.py? I can fix that myself so i can enjoy the flight i planned for tonight.

bwbriscoe

  • Jr. Member
  • **
  • Posts: 55
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #6 on: June 05, 2024, 10:02:31 pm »
When clicking load aircracft by GSX on the Fenix A320 I get:
The addon is causing the Couatl scripting Engine to restart.
Please run Live Update
Do you want to open log to see error details?

I ran Live update, no effect.

The error log is below. Can anyone help? Thanks


couatl v4.8 (build 5421)
panic log started on Wed Jun  5 20:57:38 2024

problem raised by addon <unknown>
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'EGLL', 'Requested assistance services at': 'Terminal 5|Stand 522', 'Requested parking services to': 'Terminal 5|Stand 522', 'User Pos': (51.46924547930829, -0.4878945737866038, 26.533 m, 2.8495 m, 359.5711262803319, 0.0008691987569099072, 0.001745329238474369, 0.0004479061184506036, 3.18211187210083, 1.0)}

FerrevmVnion

  • Jr. Member
  • **
  • Posts: 88
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #7 on: June 05, 2024, 10:33:09 pm »
unfortunately the files are encrypted.... had this idea too to get a error handling around this function

SN737

  • Full Member
  • ***
  • Posts: 134
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #8 on: June 05, 2024, 11:16:24 pm »
add me to the list, it happens in every airport I tried to call for refueling.

This is just one example of the error:

couatl v4.8 (build 5421)
panic log started on Wed Jun  5 18:14:41 2024

problem raised by addon <unknown>
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'SABE', 'Requested assistance services at': 'Gate 5', 'User Pos': (-34.5570195450786, -58.414420276182774, 7.97816 m, 2.50337 m, 14.440000114440899, 0.016812917818549915, 0.024434609338641167, -0.0007325239019913377, 2.553919111633301, 1.0)}

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51462
    • VIRTUALI Sagl
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #9 on: June 05, 2024, 11:20:28 pm »
There is error handling, but it only takes into account the fact the EIA website is down, not the API today started to returns weird values not according to their docs ( tested even in a simple browser).

We'll obviously fix this in the next update but, in the meantime, you can fix it by blocking the EIA.GOV website in your PC this way:

- Edit this file:

\Windows\System32\drivers\etc\hosts

and add this line as the last line of text:

127.0.0.1 api.eia.gov

SirTakis92

  • Newbie
  • *
  • Posts: 2
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #10 on: June 05, 2024, 11:25:50 pm »
Hello @ all,

My GSX crashes after some seconds, when refuling.

I load the Aircraft via Fenix EFB -> GSX.
I allready uninstalled and re-installed fenix and GSX Pro, unfortunately the problem still exists.
The issue affects all airports, I tried a lot.
Maybe somebody can support!

Quote
Fuel price =  None
Traceback (most recent call last):
 File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'LGKR', 'Requested assistance services at': 'Gate 9', 'User Pos': (39.60935277714601, 19.912480562679537, 5.73854 m, 2.84786 m, 78.76975569573463, 0.0007860985907305148, 0.001745329238474369, -8.023318087006521e-05, 3.18211187210083, 1.0)}

Thank you very much from Germany!

SirTakis92

  • Newbie
  • *
  • Posts: 2
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #11 on: June 05, 2024, 11:34:38 pm »
Replay #9 from virtuali worked !
Thank you very much!

OliverG2075

  • Newbie
  • *
  • Posts: 3
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #12 on: June 05, 2024, 11:50:05 pm »
Hello, when trying to load aircraft via the Fenix A320's EFB I keep getting this error at multiple airports (EGLL and EGCC). I have tried FSDT live update multiple times nothing seems to be working. I have attached the error log below.

couatl v4.8 (build 5421)
panic log started on Wed Jun  5 22:45:06 2024

problem raised by addon <unknown>
Traceback (most recent call last):
  File ".\GSX\assistanceServices\__init__.py", line 2955, in getFuelPrice
TypeError: float() argument must be a string or a number
{'Airport': 'EGLL', 'Requested assistance services at': 'Gate 503', 'Requested parking services to': 'Gate 503', 'User Pos': (51.4740255843537, -0.4883150230201496, 26.521 m, 2.84573 m, 179.39831885830583, 0.000351036983525658, 0.001745329238474369, -0.00028656264654968117, 3.18211187210083, 1.0)}
« Last Edit: June 05, 2024, 11:52:24 pm by OliverG2075 »

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51462
    • VIRTUALI Sagl
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #13 on: June 06, 2024, 12:07:33 am »
Please DO NOT open new threads about a problem, when an identical thread is already opened, answered and fixed. I'm merging all the duplicate threads here, and I'll repeat the solution, so it stays on the last posts and it's easier to read:

There is error handling, but it only takes into account the fact the EIA website is down, not the API today started to returns weird values not according to their docs ( tested even in a simple browser).

We'll obviously fix this in the next update but, in the meantime, you can fix it by blocking the EIA.GOV website in your PC this way:

- Edit this file:

\Windows\System32\drivers\etc\hosts

and add this line as the last line of text:

127.0.0.1 api.eia.gov

IMPORTANT
If you use Notepad or any other editor, you MUST run the editor "As Administrator", otherwise you won't be allowed to edit the file.

OliverG2075

  • Newbie
  • *
  • Posts: 3
Re: Error requesting fuel **SOLVED - temporary fix**
« Reply #14 on: June 06, 2024, 12:12:16 am »
Thank you very much! Will we have to remove this edit to that file once this has been fixed in the next update or not?
« Last Edit: June 06, 2024, 12:17:56 am by virtuali »