invernyx / smartcars-3-bugs

The bug tracker for the smartCARS 3 application
3 stars 0 forks source link

[BUG] - SC3 Issues on our VA Group Flight Today #177

Closed HondaJet closed 1 year ago

HondaJet commented 1 year ago

Describe the bug

We had 3 guys using SC3 and we all had the same issues with the current SC3 app. First after logging in through our TFDi accounts we could not see our aircraft or our fellow VA pilots on the map even though we did see other pilots around the globe.

When it came time to file the pirep it went normally with the green banner saying the pirep was filed but then within a 5-15 seconds a red banner came up and said it could not be filed. When we checked our admin section of phpVMS the pireps had indeed been filed. To go further in the SC3 app the flight was also included in our log as it normally would be.

We did 2 flights back to back so once we had shut down the aircraft, filed the pirep and then tried to start the next flight SC3 said we had an improper scenario so could not start the next flight from our bid. Once we shut down SC3 and restarted it then the bid worked and we could continue the second flight.

I don't have the exact wording for the notices but hopefully this info will help anyway.

How do you reproduce this bug?

We all started SC3 using TFDi accounts, then choose Mirage Started bid and flight normally.

Expected behavior

I don't expect we should get conflicting reports from SC3 when pirep is filed.

As for the second issue we can do back to back flights in SC2 without issue or restarting required.

Screenshots

No response

Operating system

Win10

Community airline

Mirage Executive Charters

smartCARS Version

0.8.1.2

Plugins installed

Flight center, Flight tracking, Logbook, Map, Chat

Additional context

All 3 of us testing SC3 today had the same issues.

turbofandude commented 1 year ago

Can you send us your combined.log file from %localappdata%\TFDi Design\smartCARS\logs?

PatLeclerc commented 1 year ago

I was also part of that flight and encountered the same issues. I will include my combined.log combined.log

-could not see our aircraft or our fellow VA pilots on the map -green banner saying the pirep was filed but then within a 5-15 seconds a red banner came up and said it could not be filed -improper scenario for the second flight in our bids

turbofandude commented 1 year ago

@GenericNerd I believe the problem originates here: info: Could not create TFDi Design flight with error code: 400 and message: Invalid type for departure (expectedairport[Raw Type:string]) {"code":400,"name":"HttpClientError","response":{"message":"Invalid type for departure (expectedairport[Raw Type:string])"},"sourceUri":"https://smartcars.tfdidesign.com/v3/api/flight/create","timestamp":"2023-05-09T16:32:16.872Z"}

The "expected airport, got string" portion of it tells me that we may have a data issue. This explains some of the PIREP filing issues and also the map issues.

HondaJet commented 1 year ago

Sorry, I was AFK for the rest of the day. My combined.log file is attached. combined.log

turbofandude commented 1 year ago

What airport(s) were you flying to in this flight?

HondaJet commented 1 year ago

The first flight was 6WI4 to 9WI9; second flight was 9WI9 to KBFW.

turbofandude commented 1 year ago

Fixed in the API - this is indeed an API bug. Thank you! (Linked issue: https://github.com/invernyx/smartcars-3-public-api/issues/49)