API Support Forum
OEC API > API Support > GF API COM Logging in Without Internet Connection Gives Login Failed with Invalid Username or Password
Author Topic: GF API COM Logging in Without Internet Connection Gives Login Failed with Invalid Username or Password
(3 messages, Page 1 of 1)
Moderators: VPfau
RWare2020
Posts: 205
Joined: Feb 11, 2020


Posted: Nov 04, 2022 @ 11:31 AM             Msg. 1 of 3
When logging into the GF API COM without an internet connection, it returns with a fail reason of invalid username or password (fail reason of value 0). I'm assuming that is just the default that gets passed in, but I feel like it is miss leading and needs to send back a different error that indicates connection to the API failed.

Additionally, from this example code: https://gainfutures.com/GFAPI/html/da57e5d9-0be9-4b5c-a8c8-5e39e11b5c98.htm, there is a FailReason.ConnectionError and I can't seem to find it in the GF COM API.
JSmith5611
Posts: 187
Joined:


Posted: May 23, 2023 @ 09:50 AM             Msg. 2 of 3
Yep, these enums are not being mapped correctly. not a major issues, but i'll fix it.
Jason Smith
RWare2020
Posts: 205
Joined: Feb 11, 2020


Posted: May 23, 2023 @ 01:13 PM             Msg. 3 of 3
Thank you very much.