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

Unable to fetch credential with identifier #10

Closed
jacks205 opened this issue Nov 20, 2014 · 25 comments
Closed

Unable to fetch credential with identifier #10

jacks205 opened this issue Nov 20, 2014 · 25 comments

Comments

@jacks205
Copy link

I signed up to test out the example app and defined the constants that were my API Key and secret, but when the app launches it logs out:

Kickflip[4820:1727535] Unable to fetch credential with identifier "?FoNm4MmELaZRk=!Ws7_QZMBfyauoqp-tue5l-Ys" (Error -25300)

I'm assuming this is the reason I can't begin streaming, since when I hit the record button it says,

Stream Start Error
Error starting stream: unsupported URL

Not sure what I did incorrectly, just followed the directions as stated.

@chrisballinger
Copy link
Member

Hmmm what hardware and OS version are you using? Are you using the pull request I just merged?

@jacks205
Copy link
Author

I am using a Macbook Pro running OSX 10.9.5. And yes I am using that pull request. I cloned the fork since I was testing it out before you actually pulled it into the repo

@chrisballinger
Copy link
Member

Did you test it without the pull request (e.g. AFNetworking 1.x)?

On Thu, Nov 20, 2014 at 1:57 PM, Mark Ian Jackson [email protected]
wrote:

I am using a Macbook Pro https://www.apple.com/macbook-pro/specs-retina/
running OSX 10.9.5. And yes I am using that pull request. I cloned the fork
since I was testing it out before you actually pulled it into the repo


Reply to this email directly or view it on GitHub
#10 (comment)
.

@jacks205
Copy link
Author

No I haven't, I'll test that out.

I also just try using your repo with the pull request, and tried making another app, still the same issue. Does the app name on kickflip.io have to be the same as the actual app name?

@jacks205
Copy link
Author

So I tried using the pre-pull request version and I stuff get the same error logged in xcode but I am able to start a stream.

But I have the same issue where I am given a link to the video stream but it has a black screen. Once I stop recording I am able to view the video on my phone and on the same link.

I am using an iPhone 6 running iOS 8.1.

@rsippl
Copy link

rsippl commented Nov 25, 2014

I think the main issue is in FFOutputStream.m, finding the h264 codec fails via avcodec_find_encoder_by_name. This is what you get in the console while recording a stream:

2014-11-25 11:54:05.323 Kickflip[1686:60b] codec not found: h264
[mpegts @ 0x1637e400] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts
2014-11-25 11:54:13:266 Kickflip[1686:1803] Skipping upload of ts file currently being recorded: {
fileName = "index0.ts";
manifest = "#EXTM3U\n#EXT-X-VERSION:3\n#EXT-X-TARGETDURATION:11\n#EXT-X-MEDIA-SEQUENCE:0\n#EXTINF:11,\nindex0.ts\n#EXT-X-ENDLIST\n";
startDate = "2014-11-25 10:54:13 +0000";
} (
"index.m3u8",
"index0.ts",
"thumb.jpg"
)

This means the .ts files are missing, obviously this causes the playback to fail.

Chris, is there a quick fix for this? Including x264 would probably fix this, OTOH it's not needed just for muxing to HLS.

@chrisballinger
Copy link
Member

That warning message is harmless, we only use the H.264 hardware codec inside the phone. Don't ever try to use x264 on mobile, you will be very disappointed compared to the hardware encoder.

I'll see if I can sort this out soon. There's now an official successor to AFOAuth2Client called AFOAuth2Manager for AFNetworking 2.x.

@rsippl
Copy link

rsippl commented Nov 25, 2014

You're right in that the warning is harmless, but the trouble is, .ts files are missing (let's continue that discussion here).

x264 obviously doesn't make much sense if you can use AVAssetWriter ;)

Looking forward to your AFOAuth2Client based solution.

@mobdim
Copy link

mobdim commented Dec 12, 2014

I have the same error

Unable to fetch credential with identifier "6q0@qMV8eZz7Awlg3rUbnkIcjnRNi5aTYCtYEXr?" (Error -25300)

@ghost
Copy link

ghost commented Dec 15, 2014

Is there a known fix for this issue?

@rsippl
Copy link

rsippl commented Dec 15, 2014

A quick fix is to revert the latest pull request merge. Feel free to use my fork.

@chrisballinger
Copy link
Member

@Rlsl88 @rsippl Hey sorry about the delay, I'm going to see if I can sort this out this afternoon with the new AFOAuth2Manager.

@chrisballinger
Copy link
Member

@Rlsl88 @rsippl @jacks205 @mobdim Kickflip-iOS 1.2 has been released which now uses AFNetworking 2.x, AFOAuth2Manager and PureLayout. It should also fix most of the keychain warnings, which seem to be related to running the sample app under the Xcode Wildcard Team Provisioning Profile.

@jacks205
Copy link
Author

Thanks I'll be sure to check it out!

@rohitpathak88
Copy link

Hey Chris I still got this error "codec not found: h264
[mpegts @ 0x15412600] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts"

Facing the same issue that you guys discussed above .

After fews seconds of start recording got this

Stream is ready at URL: https://d3hvlzuuzo3w9w.cloudfront.net/test_kickflip_1/370gul3ku59n/6377ce0a-18c3-43cf-abe1-1fbbcd43ed28/index.m3u8

But unable to play any live streaming on the above url. Also got some error in between like

Error writing packet at streamIndex 0 and PTS 12075708248452: Error Domain=org.ffmpeg.FFmpeg Code=-22 "Invalid argument" UserInfo=0x145d1210 {kFFmpegErrorCode=-22, NSLocalizedDescription=Invalid argument}

And here is the Latest manifest:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:13
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10,
index0.ts
#EXTINF:12,
index1.ts
#EXTINF:11,
index2.ts
#EXTINF:9,
index3.ts
#EXTINF:12,
index4.ts
#EXTINF:8,
index5.ts
#EXTINF:12,
index6.ts
#EXTINF:8,
index7.ts
#EXTINF:11,
index8.ts
#EXTINF:8,
index9.ts
#EXTINF:11,
index10.ts
#EXTINF:13,
index11.ts
#EXTINF:8,
index12.ts
#EXTINF:11,
index13.ts
#EXTINF:7,
index14.ts
#EXTINF:8,
index15.ts
#EXT-X-ENDLIST

Would you please help me what to do next in order to watching live streaming. Thanks in advance :)

@BurningBird
Copy link

I am having the same issue as rohit-mobcoder facing with lastest master branch on ios 8.1.
then after I upgrade to 8.2, i got the following error:
2015-03-26 20:17:18.845 Kickflip[264:19149] Unable to fetch credential with identifier "DCMBbjRlWA1Rbtgm1f2;EWnxBW5IlBr1.MBND5u4" (Error -25300)
2015-03-26 20:17:18.849 Kickflip[264:19149] Unable to fetch credential with identifier "DCMBbjRlWA1Rbtgm1f2;EWnxBW5IlBr1.MBND5u4" (Error -25300)
2015-03-26 20:17:19.044 Kickflip[264:19149] Unable to fetch credential with identifier "DCMBbjRlWA1Rbtgm1f2;EWnxBW5IlBr1.MBND5u4" (Error -25300)
2015-03-26 20:17:19.047 Kickflip[264:19149] Unable to fetch credential with identifier "DCMBbjRlWA1Rbtgm1f2;EWnxBW5IlBr1.MBND5u4" (Error -25300)
2015-03-26 20:17:19.674 Kickflip[264:19149] Unable to fetch credential with identifier "DCMBbjRlWA1Rbtgm1f2;EWnxBW5IlBr1.MBND5u4" (Error -25300)
2015-03-26 20:17:21:178 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "The operation couldn’t be completed. (kKFAPIClientErrorDomain error 105.)" UserInfo=0x174276380 {success=false, reason='NoneType' object has no attribute 'getitem'}
2015-03-26 20:17:21:181 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "Fetch an active user first" UserInfo=0x174276140 {NSLocalizedDescription=Fetch an active user first}
2015-03-26 20:17:21:183 Kickflip[264:807] Error pre-fetching new user: Error Domain=kKFAPIClientErrorDomain Code=105 "The operation couldn’t be completed. (kKFAPIClientErrorDomain error 105.)" UserInfo=0x174275640 {success=false, reason='NoneType' object has no attribute 'getitem'}
2015-03-26 20:17:21:242 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "The operation couldn’t be completed. (kKFAPIClientErrorDomain error 105.)" UserInfo=0x174278e80 {success=false, reason='NoneType' object has no attribute 'getitem'}
2015-03-26 20:17:21:243 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "Fetch an active user first" UserInfo=0x174276180 {NSLocalizedDescription=Fetch an active user first}
2015-03-26 20:17:39:723 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "The operation couldn’t be completed. (kKFAPIClientErrorDomain error 105.)" UserInfo=0x174462440 {success=false, reason='NoneType' object has no attribute 'getitem'}
2015-03-26 20:17:39:724 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "Fetch an active user first" UserInfo=0x17427e180 {NSLocalizedDescription=Fetch an active user first}
2015-03-26 20:17:39:771 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "The operation couldn’t be completed. (kKFAPIClientErrorDomain error 105.)" UserInfo=0x1744618c0 {success=false, reason='NoneType' object has no attribute 'getitem'}
2015-03-26 20:17:39:772 Kickflip[264:807] Error fetching all streams: Error Domain=kKFAPIClientErrorDomain Code=105 "Fetch an active user first" UserInfo=0x174461280 {NSLocalizedDescription=Fetch an active user first}
2015-03-26 20:17:49:479 Kickflip[264:807] Error starting stream: {
reason = "'NoneType' object has no attribute 'getitem'";
success = 0;
}
2015-03-26 20:17:49:594 Kickflip[264:807] Error starting stream: {
NSLocalizedDescription = "Fetch an active user first";
}

@bshyong
Copy link

bshyong commented Mar 30, 2015

@rohit-mobcoder I have the same error. Anybody have success getting it to work?

@rudywen
Copy link

rudywen commented Mar 31, 2015

Also seeing the same issue. Does anyone have the example iOS app working?

@mdellerie
Copy link

I have the following error :
2015-04-10 12:04:52.141 Kickflip[10489:8331378] Unable to fetch credential with identifier "[email protected]" (Error -25300)
2015-04-10 12:04:52:345 Kickflip[10489:607] Error starting stream: {
NSErrorFailingURLKey = "https://kickflip.io/o/token/";
NSErrorFailingURLStringKey = "https://kickflip.io/o/token/";
}

If I go to https://kickflip.io/, i see that the SSL certificate expired yesterday (April 9th at 01:59). Maybe this expiration explains the error ?

@russwork
Copy link

@mdellerie Same issue, I think your suspicion may be true. I get an SSL warning when I go to the web portal.

@KeithHanson
Copy link

Does anyone have a work around for this? The startup I'm working with has a demo today and this puts me up against it >.<

Have the founders weighed in?

@KeithHanson
Copy link

I just sent in an e-mail to their Uservoice just to be sure they're aware.

@KeithHanson
Copy link

@mdellerie @russwork:

You can use the following to get around it for now:

[KFAPIClient manager].securityPolicy.allowInvalidCertificates = YES;

@chrisballinger
Copy link
Member

The SSL cert was renewed on April 9, so please don't set allowInvalidCertificates!

@KeithHanson We are aware of the issue you are having and are working on a hotfix right now. Will update when it is resolved.

@SheereenThowlath
Copy link

Unable to fetch credential with identifier "API_KEY" (Error -25300)
2015-06-24 12:00:43:756 Kickflip[197:807] Error starting stream: {
NSErrorFailingURLKey = "https://kickflip.io/o/token/";
NSLocalizedDescription = "Request failed: bad request (400)";

I cant find kfsecrets.h in the example project

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