I integrated google-cast-sdk to my app, and when I enqueue some videos, I can't skip next/previous using the controls in the expanded controller.
When I tap the button, nothing happens in the UI or in the Chromecast. The log outputs:
-[GCKMediaControlChannel didReceiveTextMessage:] Received unexpected error: Invalid Request.
-[GCKUIMediaController request:didFailWithError:] request [incremental number] failed with error Error Domain=com.google.cast.GCKError Code=4 "Invalid request" UserInfo={NSLocalizedDescription=Invalid request}
To make sure this is not related to my app, I created a blank project/app and only included this Pod: https://github.com/guilhermearaujo/google-cast-bug
Update
I tried in both CAF receiver and Style Media receiver. The faulty behaviour is the same in both cases. This is what the Chromecast logs to the debugger:
[cast.receiver.MediaManager] Unexpected message type: NEXT
[cast.receiver.MediaManager] Sending error: INVALID_REQUEST INVALID_COMMAND
My iOS app use RestKit framework for implementing RESTful web services client.
Sometimes, I have a problem when I call my server from my application.
The request is not sent and it fails at the end of the expiration with this error:
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
At the first openning, it is impossible to reproduce this.
The problem occurs when the application is put into the background and it restarts 10 minutes later or more (it does not produce every time). At this point, there is no server side call .
Then, the only way to solve this problem is to force-quit the application.
We checked there is no error of url, of header, etc ...
HELP ME :'(
Try to set time interval like
[manager.requestSerializer setTimeoutInterval:yourTimeInterval];
Problem:
HTTPS GET returns empty response if sent within 1-2 seconds after returning to the app from the lock-screen.
Steps to Reproduce
Start my app. It shows a newsfeed in a TableView on the screen.
Lock the iPhone.
Unlock the iPhone
Within 1-2 seconds do the pull-to-refresh on TableView so it sends HTTPS GET request to YouTube to fetch the list of videos from the particular channel.
Expected Result: I get the response from YouTube with the list of videos.
Actual Result: I get "empty response" log from Moya.
Note: the next same pull to refresh works. If you wait for 2 secs and do the pull to refresh - also works perfectly. STRANGE!
Context:
iOS
Swift
Moya
Who knows why? Any clue? Broke my brains.
UPD
The link to the code: https://yadi.sk/d/Feu0FZkdu9ogr
Please try and experience it.
2015-08-01 22:30:43.893 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.896 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.899 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.912 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.913 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.913 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.914 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.914 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.915 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.915 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
I've been getting this at random times. How can I check exactly which framework/library is causing this? It just prints in my Xcode console.
Look hat this Question it seems to be very similar, are you using a library which using a websocket server. Maybe this can solve your Problem very fast. If not please Post a list of librarys you use and form you code where you set up a socket.
Timeouts occur if an api does not respond for a long time, which is usually set to 15, 30 or 60 seconds.
Your timestamps are split across a second as well, which clearly says that you are using a socket connection and probably a library for the same, which is the issue here. Check the library you are using. It will be a server side issue.
Some libraries in your project might use socket or SSL authentication.
In my case, I saw same error message, handshake failed, when I tried to send push notification to APNS server with wrong certificates.
It's hard to find which library or framework print out to the console.
Try to remove 3rd party libraries included in the project until the error message stops appearing.
I think you are running a websocket server for your project. You have to run a socket.io server. That's why xcode is showing this error.
See this similiar post on stackoverflow
My Socket.io on IOS fails to handshake with the websocket server
Some times when you use the push notification api sometimes the handshake failed error occurs , so read this apple documentation for trouble shooting if your push notification feature is logging this error App push notification troubleshooting
The way I can introduce may be not a good solution for you. And my answer works based on these two conditions
1.you have to comment nearlly all the "println" in your code
2.the instance call "println" to send error message
Then, you can set "Symbolic breakpoint" in "Debug menu -> Breakpoints -> Create Symbolic Breakpoint", and set condition to be "println"
(If the module is old, you may have to break at "NSLog" or some thing)
reference to how to set symbolic breakpoint: http://rshankar.com/debugging-swift-app-in-xcode/
I'm trying to create a native iOS client for the chat example in Socket.io.
I've set up everything, but at this point...
[socketIO connectToHost:#"localhost" onPort:3000];
I get this error
ERROR: handshake failed ... Server returned status code 400
I guess I have to send some params, maybe like this...
[socketIO connectToHost:#"localhost" onPort:3000 withParams:...];
...but I have no idea what I have to send.
Thanks!