Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect method, bad request (400) #230

Closed
dangnguyenvu8893 opened this issue Dec 21, 2015 · 3 comments
Closed

Reconnect method, bad request (400) #230

dangnguyenvu8893 opened this issue Dec 21, 2015 · 3 comments
Milestone

Comments

@dangnguyenvu8893
Copy link

my hubConnect alway log this error.

2015-12-21 20:58:15.285 SaleConnect[14637:184400] Thread <NSThread: 0x7f9638c08ac0>{number = 1, name = main}:__66-[SRServerSentEventsTransport open:connectionData:isReconnecting:]_block_invoke_2230 [Line 275]
[SERVER_SENT_EVENTS]    error: Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/event-stream" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7f963b0b1c70> { URL: https://MyHost/signalr/reconnect?connectionData=%5B%7B%22Name%22%3A%22salesconnectchathub%22%7D%5D&connectionToken=%2B534f%2BVsBo%2BWZWFxZ0Vq0J9vw6epjr2wigHpOmlwfaHJTGpiZo%2FOV%2BdZoSzHARRsRToxoi9h4xvO6IkgliqMv6THQGcQY81W1Q6AWdhPBIk3x7QhEX1QxIgwVorUx%2Bub&customerCd=0000001999&groupsToken=483w6PWDHHLvfD08uRgSS26S8i6PY1TaQbe9bzjuGRPgBYEsbgIF9vFVSE1wXplN%2BOYTFJ1%2BNHYGKIFzZ3DOEPLTTjnkg3P7fCn7XpOsjxlubD%2BFS%2FZzm84LP4vsxt%2FF5L0U5cOlfCWIRwKNAjlhCYV%2FfzxVr1qN8Sv40js8L4U%3D&messageId=s-0%2C71FBE&shainNoCd=000001&tempoCd=AP0001&transport=serverSentEvents&userName=0000001999&userType=3 } { status code: 200, headers {
    "Cache-Control" = "no-cache";
    Connection = "keep-alive";
    "Content-Type" = "text/event-stream";
    Date = "Mon, 21 Dec 2015 13:57:49 GMT";
    Expires = "-1";
    Pragma = "no-cache";
    Server = "Microsoft-IIS/8.5";
    "Transfer-Encoding" = Identity;
    "X-AspNet-Version" = "4.0.30319";
    "X-Content-Type-Options" = nosniff;
    "X-Powered-By" = "ASP.NET";
} }, NSErrorFailingURLKey=https://MyHost/signalr/reconnect?connectionData=%5B%7B%22Name%22%3A%22salesconnectchathub%22%7D%5D&connectionToken=%2B534f%2BVsBo%2BWZWFxZ0Vq0J9vw6epjr2wigHpOmlwfaHJTGpiZo%2FOV%2BdZoSzHARRsRToxoi9h4xvO6IkgliqMv6THQGcQY81W1Q6AWdhPBIk3x7QhEX1QxIgwVorUx%2Bub&customerCd=0000001999&groupsToken=483w6PWDHHLvfD08uRgSS26S8i6PY1TaQbe9bzjuGRPgBYEsbgIF9vFVSE1wXplN%2BOYTFJ1%2BNHYGKIFzZ3DOEPLTTjnkg3P7fCn7XpOsjxlubD%2BFS%2FZzm84LP4vsxt%2FF5L0U5cOlfCWIRwKNAjlhCYV%2FfzxVr1qN8Sv40js8L4U%3D&messageId=s-0%2C71FBE&shainNoCd=000001&tempoCd=AP0001&transport=serverSentEvents&userName=0000001999&userType=3, com.alamofire.serialization.response.error.data=<64617461 3a20696e 69746961 6c697a65 640a0a64 6174613a 207b2243 223a2273 2d302c37 31464246 222c224d 223a5b7b 2248223a 2253616c 6573436f 6e6e6563 74436861 74487562 222c224d 223a226f 6e546573 744f626a 65637422 2c224122 3a5b2248 656c6c6f 225d7d5d 7d0a0a64 6174613a 207b2243 223a2273 2d302c37 31464330 222c224d 223a5b7b 2248223a 2253616c 6573436f 6e6e6563 74436861 74487562 222c224d 223a226f 6e546573 744f626a 65637422 2c224122 3a5b2248 656c6c6f 225d7d5d 7d0a0a64 6174613a 207b2243 223a2273 2d302c37 31464331 222c224d 223a5b7b 2248223a 2253616c 6573436f 6e6e6563 74436861 74487562 222c224d 223a226f 6e546573 744f626a 65637422 2c224122 3a5b2248 656c6c6f 225d7d5d 7d0a0a64 6174613a 207b2243 223a2273 2d302c37 31464332 222c224d 223a5b7b 2248223a 2253616c 6573436f 6e6e6563 74436861 74487562 222c224d 223a226f 6e546573 744f626a 65637422 2c224122 3a5b2248 656c6c6f 225d7d5d 7d0a0a64 6174613a 207b2243 223a2273 2d302c37 31464333 222c224d 223a5b7b 2248223a 2253616c 6573436f 6e6e6563 74436861 74487562 222c224d 223a226f 6e546573 744f626a 65637422 2c224122 3a5b2248 656c6c6f 225d7d5d 7d0a0a>, NSLocalizedDescription=Request failed: unacceptable content-type: text/event-stream}
``
@canpoyrazoglu
Copy link

I'm also having the same issue. I connect to SignalR and it immediately disconnects with the same error.

@canpoyrazoglu
Copy link

@dangnguyenvu8893 Have a look at this, it solved my problem: SportsLock@519c564

@abillingsley
Copy link
Collaborator

this is resolved as of 2.0.1

@abillingsley abillingsley modified the milestone: 2.0.1 Feb 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants