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

Errpr in ;listing the archieves #1

Open
gajanantps opened this issue Nov 4, 2014 · 3 comments
Open

Errpr in ;listing the archieves #1

gajanantps opened this issue Nov 4, 2014 · 3 comments

Comments

@gajanantps
Copy link

I have gone through the link https://github.com/superacidjax/opentok_archive/blob/master/archiving-sample-ruby/docs/REST-API.md#http-get-to-archive to list my arciecves. While executine the code i'm getting an exception saying "host name api.tokbox.com' could not be resolved. My internet speed is not too bad. I'm able to access other websites. I'm able to login to tokbox account, but if i run the application i'm getting the above mentioned exception.. I have copy pasted the code you have mentioned for achieving and has replaced with my login credentials and API key.

this is the url i wan to use for archieving
"https://api.opentok.com/v2/partner/MYAPI/archive?offset=0&count=0";

if i replace this URL with some other url (i used google.com) I'm getting the proper response.

Your help will be greatly appreciated.
thanks in advance

@gajanantps
Copy link
Author

i changed the url to http://api.opentok.com/v2/partner/MYAPI/archive?offset=0&count=0"; and the error still exists. as an experiment i changed the url to "http://api.opentok.com/" and the error still exists. But if i give any other url ( this time i gave tokbox.com) it returns some data..

@gajanantps
Copy link
Author

Oh yes got the solution.. i had not mentioned header property :(

@gajanantps
Copy link
Author

I'm using .Net to do archiving. In the start archivie method the line response = (HttpWebResponse)request.GetResponse(); is giving 404 error.. Help me please

Server Error in '/' Application.
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: OpenTokSDK.Exception.OpenTokWebException: The remote server returned an error: (404) Not Found.

Source Error:

Line 99: catch (WebException e)
Line 100: {
Line 101: throw new OpenTokWebException(e.Message, e);
Line 102: }
Line 103:

Source File: F:\All Projects - Gajanan Works\Source Codes\TrialVCTokbox\trialVC\trialVC\HttpClient.cs Line: 101

Stack Trace:

[OpenTokWebException: The remote server returned an error: (404) Not Found.]
OpenTokSDK.Util.HttpClient.DoRequest(String url, Dictionary2 specificHeaders, Dictionary2 bodyData) in F:\All Projects - Gajanan Works\Source Codes\TrialVCTokbox\trialVC\trialVC\HttpClient.cs:101
OpenTokSDK.Util.HttpClient.Post(String url, Dictionary2 headers, Dictionary2 data) in F:\All Projects - Gajanan Works\Source Codes\TrialVCTokbox\trialVC\trialVC\HttpClient.cs:56
OpenTokSDK.OpenTok.StartArchive(String sessionId, String name) in F:\All Projects - Gajanan Works\Source Codes\TrialVCTokbox\trialVC\trialVC\OpenTok.cs:225
trialVC.archieving.btnStartRec_Click(Object sender, EventArgs e) in F:\All Projects - Gajanan Works\Source Codes\TrialVCTokbox\trialVC\trialVC\archieving.aspx.cs:28
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

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

1 participant