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

Error while calling samples. #17

Open
yogeshonline1 opened this issue Mar 7, 2019 · 1 comment
Open

Error while calling samples. #17

yogeshonline1 opened this issue Mar 7, 2019 · 1 comment

Comments

@yogeshonline1
Copy link

Tried to call API though samples (C#) but it always through error "object reference error"
Not sure what I am doing wrong.

Below is the stack trace, it failed in CallAuthenticationHeaders

Able to generate by own secratekey and able to download report and access others APIs using same credentials over here: https://developer.cybersource.com/api/reference/api-reference.html

at CyberSource.Client.ApiClient.CallAuthenticationHeaders(String requestType, String requestTarget, String requestJsonData)
at CyberSource.Client.ApiClient.PrepareRequest(String path, Method method, Dictionary2 queryParams, Object postBody, Dictionary2 headerParams, Dictionary2 formParams, Dictionary2 fileParams, Dictionary2 pathParams, String contentType) at CyberSource.Client.ApiClient.CallApi(String path, Method method, Dictionary2 queryParams, Object postBody, Dictionary2 headerParams, Dictionary2 formParams, Dictionary2 fileParams, Dictionary2 pathParams, String contentType)
at CyberSource.Api.ReportDownloadsApi.DownloadReportWithHttpInfo(Nullable`1 reportDate, String reportName, String organizationId)
at Cybersource_rest_samples_dotnet.Samples.Reporting.CoreServices.DownloadReport.Run() in C:\Users\agarwaly\Desktop\CyberSource Reports\cybersource-rest-samples-csharp-master (2)\cybersource-rest-samples-csharp-master\src\Samples\Reporting\CoreServices\DownloadReport.cs:line 35

@brutaldev
Copy link

Also having the same problem, I've reported this in the SDK as well: CyberSource/cybersource-rest-client-dotnet#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants