1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Windows Weird HTTP error when starting server

Discussion in 'Server Help' started by Joax321, Jul 12, 2016.

  1. Joax321

    Joax321 Shipwright

    Messages:
    6
    So i start my server, everything alright, ports forwarded and everything done, but there is this weird error that i think is the cause of why my friends cant join my server
    WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 502
    (Full log below)
     

    Attached Files:

    Osmal likes this.
  2. makmoud98

    makmoud98 You are already DEAD Forum Moderator Staff Alumni Tester

    Messages:
    586
    try setting
    sv_enableIPv6 = 0
    in the autoconfig.cfg
     
  3. Joax321

    Joax321 Shipwright

    Messages:
    6
    Already done, take a look at my autoconfig (removed rcon ofcorse)
     

    Attached Files:

  4. Frikman

    Frikman Bison Rider

    Messages:
    162
    I've been having the same issue. I believe it doesn't affect gameplay, but it's really annoying and fills the console quite fast.
     
  5. jrgp

    jrgp THD Team THD Team Administrator Global Moderator

    Messages:
    75
    Can you guys check if this is still happening for you? If it is, please let me know your public IP and I'll check logs.
     
    Joax321 likes this.
  6. Joax321

    Joax321 Shipwright

    Messages:
    6
    Not happening anymore, thanks :d
     
  7. jimmyzoudcba

    jimmyzoudcba Haxor Tester

    Messages:
    274
    DK if I'm kinda necroing but doing force update did fix this for me.
     
  8. CreamSoda

    CreamSoda Ballista Bolt Thrower

    Messages:
    4
    This is happening to me when I try to run my server. The server shows up on the list but shows no connection bars and I can't connect to it. Here are the logs Srange logs.png
     
  9. jrgp

    jrgp THD Team THD Team Administrator Global Moderator

    Messages:
    75
    What is your public ip? What is the port you have configured ?
     
  10. CreamSoda

    CreamSoda Ballista Bolt Thrower

    Messages:
    4
    if you mean the server ip it is 127.0.0.1 and the port is 50301
     
  11. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    That's cute, but it's not. 127.0.0.1 is the internal IP of "this machine" (localhost). We need the external, public facing IP.

    However, any v6 related stuff should be fixed (that is to say, removed entirely) in the next update
     
    jimmyzoudcba and Vamist like this.
  12. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    My server did have the same error, It was still online though,
    (just took these from server logs (in random order ._.))
    Also, note; I'm running on KAG (not classic) where as cream is
    Code:
    [07:14:20] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:14:30] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:14:40] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    
    [07:12:11] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:12:21] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:12:31] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:12:41] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    [07:12:50] * ryanc2845 connected (admin: 0 guard 0 gold 1 tester 0)
    [07:12:51] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 500: Internal API error
    
     
    Last edited: Oct 18, 2016
  13. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Classic isn't getting any updates so it wont be getting the v6 deprecation (if it even has v6 in the first place? can't remember honestly) - will pass this along to @jrgp so he can look into those errors

    (thanks for the logs, would be great to have your server's timezone to be able to look up the exact failure more easily!)
     
  14. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    GMT London time, I'l upload all server logs at the time if needed.
     
  15. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Nope should be enough to track it down, thanks!
     
  16. jrgp

    jrgp THD Team THD Team Administrator Global Moderator

    Messages:
    75
    Hey can you try to run your server again and see if this still happens?
     
  17. jonipro

    jonipro Haxor Tester
    1. Terracraft's Servers

    Messages:
    75
    I've got exactly the same problem.
    See my logs below
    and autoconfig down below.
    I've dmz'ed my local ip and opened the required ports in advanced firewall.
    Was working fine yesterday but after my dad turned wlan on in our router it stopped working and i think none can see the server in the serverlist.
    Its really annoying. The wlan is turned off Nat is on cone...
    There shouldnt be any problem because ISP this time isnt blocking ports.
    Is it the mod which does this?
    My Current IP adress is : 2.68.214.64
    I've got no ipv6 protocol functioning.
     

    Attached Files:

  18. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Yeah, i got the same error today, after the update, I started up tflippys dedicated server. Got that HTTP error 200, and it only did one, that's it so far. I'll edit this post or post a new one if i find it happening again on the server.
     
    jonipro likes this.
  19. jonipro

    jonipro Haxor Tester
    1. Terracraft's Servers

    Messages:
    75
    That shouldnt be much of a problem,it just doesnt show up in the server list for a second,but yeah you never know where that can lead to.
     
  20. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    @jrgp After the recent updates, I've been getting weird API errors that are shutting down the server, well not shutting down, but kicks half the current players and then freezes.

    Code:
    [18:32:55] WARNING: API call failed: cURL Error in putStatus(): Timeout was reached
    [18:33:08] WARNING: API call failed: cURL Error in putStatus(): Timeout was reached
    [18:33:16] Player Boris1 left the game (players left 19)
    [18:33:19] Player Vamist left the game (players left 18)
    [18:33:21] Player MatthewTL3 left the game (players left 17)
    [18:33:23] WARNING: API call failed: cURL Error in putStatus(): Timeout was reached
    [18:33:25] Player martin1114 left the game (players left 16)
    [18:33:25] Player Jonsku10 left the game (players left 15)
    [18:33:25] Player fioffi1 left the game (players left 14)
    [18:33:25] Player cesar0 left the game (players left 13)
    [18:33:25] Player orglobe_exe left the game (players left 12)
    [18:33:25] Player erik2 left the game (players left 11)
    [18:33:26] Player DrunkenArch3r left the game (players left 10)
    [18:33:30] Player qua2ar left the game (players left 9)
    [18:33:30] Player Kramolla left the game (players left 8)
    [18:33:32] Player LinkLoftwing left the game (players left 7)
    [18:33:33] WARNING: API call failed: cURL Error in putStatus(): Timeout was reached
    Is there any way to stop this, Or this is my problem?

    I'm using windows server 2012
    Server has 7GB spare ram (15GB ram total), CPU usage was at 30%, Internet > 7mbps send > 600+kbps received

    Weirdly, once it did it to one of my servers, about 2-3 mins later, it happened to my zombies server and TC server which i restarted..


    Related to thread >

    HTTP error happened at this time for me,
    Code:
    [14:50:02] WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 502
    so 2:50pm GMT.. And that's it.. Only had it once.
     
    jonipro and norill like this.