{"action":"opened","issue":{"url":"https://api.github.com/repos/waylaidwanderer/PHP-SteamCommunity/issues/17","repository_url":"https://api.github.com/repos/waylaidwanderer/PHP-SteamCommunity","labels_url":"https://api.github.com/repos/waylaidwanderer/PHP-SteamCommunity/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/waylaidwanderer/PHP-SteamCommunity/issues/17/comments","events_url":"https://api.github.com/repos/waylaidwanderer/PHP-SteamCommunity/issues/17/events","html_url":"https://github.com/waylaidwanderer/PHP-SteamCommunity/issues/17","id":132620161,"number":17,"title":"Loops on first login","user":{"login":"mig4ng","id":5817039,"avatar_url":"https://avatars.githubusercontent.com/u/5817039?v=3","gravatar_id":"","url":"https://api.github.com/users/mig4ng","html_url":"https://github.com/mig4ng","followers_url":"https://api.github.com/users/mig4ng/followers","following_url":"https://api.github.com/users/mig4ng/following{/other_user}","gists_url":"https://api.github.com/users/mig4ng/gists{/gist_id}","starred_url":"https://api.github.com/users/mig4ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mig4ng/subscriptions","organizations_url":"https://api.github.com/users/mig4ng/orgs","repos_url":"https://api.github.com/users/mig4ng/repos","events_url":"https://api.github.com/users/mig4ng/events{/privacy}","received_events_url":"https://api.github.com/users/mig4ng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T06:35:58Z","updated_at":"2016-02-10T06:35:58Z","closed_at":null,"body":"I don't know if this is my fault or not, you must be tired of me but on the first login of each bot it starts to loop I don't know why:\r\n`\r\nPHP Warning:  file_put_contents(C:\\Users\\mig4ng\\php\\PHP-SteamCommunity-master\\Examples\\authfiles\\HIDDEN_LOGIN.authfile): failed to open stream: No such file or directory in C:\\Users\\mig4ng\\php\\PHP-SteamCommunity-master\\SteamCommunity.php on line 161\r\n\r\nWarning: file_put_contents(C:\\Users\\mig4ng\\php\\PHP-SteamCommunity-master\\Examples\\authfiles\\HIDDEN_LOGIN.authfile): failed to open stream: No such file or directory in C:\\Users\\mig4ng\\php\\PHP-SteamCommunity-master\\SteamCommunity.php on line 161\r\nGenerated Steam Guard code: MBHGG\r\nLogin result: Need2FA.\r\nGenerated Steam Guard code: MBHGG\r\nLogin result: Need2FA.\r\nGenerated Steam Guard code: MBHGG\r\nLogin result: Need2FA.\r\nGenerated Steam Guard code: MBHGG\r\nLogin result: Need2FA.\r\n`\r\n\r\nBut as soon as I stop the process and run it again it works in perfection:\r\n`\r\n$ php examplebot.php\r\nGenerated Steam Guard code: 8GDWV\r\nLogin result: LoginOkay.\r\nLogged in successfully.\r\nfloat(4.36)\r\n`\r\n\r\nThe config file is the same as before, it is working and the only modification I made on ExampleBot.php was commenting this piece of code (lines 46-54):\r\n```php\r\n    /*\r\n    $tradeOffers = $steam->tradeOffers();\r\n    var_dump($tradeOffers->getTradeOffersViaAPI(true));\r\n\r\n    $trade = $tradeOffers->createTrade(12345);\r\n    $trade->addOtherItem(730, 2, \"12345678\");\r\n    var_dump($trade->send());\r\n    var_dump($trade->sendWithToken('token'));\r\n    */\r\n```"}}