Git Product home page Git Product logo

csharp-http-client's People

Contributors

akzent avatar aroach avatar blitzerpl avatar ciceropablo avatar crweiner avatar derekneuland avatar dhsrocha avatar dutts avatar ed-parry avatar ely-alamillo avatar eshanholtz avatar garethpaul avatar gimly avatar gr8shivam avatar jennifermah avatar julianonunes avatar luciajimenez avatar mptap avatar nillis avatar pandaboy00 avatar pushkyn avatar rakatyal avatar rohitdaryanani avatar sanjaysingh avatar shwetha-manvinkurke avatar thinkingserious avatar twilio-ci avatar twilio-dx avatar vyaspranjal33 avatar zacmarcus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csharp-http-client's Issues

Proxy question

Client has a private field, _httpClient which seems to only be used if BuildHttpClient is called which I don't see called anywhere.

Is BuildHttpClient supposed to be called?

Thanks.

Datasource

Hello,

I can see the response from restful api for example in messagebox but a do not know have tu bing in datagridview.

How I can do it?

Thanks

Exception swallowing

catch (Exception ex) { HttpResponseMessage response = new HttpResponseMessage(); string message; message = (ex is HttpRequestException) ? ".NET HttpRequestException" : ".NET Exception"; message = message + ", raw message: \n\n"; response.Content = new StringContent(message + ex.Message); return new Response(response.StatusCode, response.Content, response.Headers); }

As you can see response always initializes with StatusCode.Ok.
It's not possible with such implementation to track when client throws something.

Auto-generate the release notes upon release

Issue Summary

For every release, we hand craft the release notes on GitHub, now we would like to automate this process. Please see the existing release notes for an example. The contents of the release notes are generated from the CHANGELOG.md file. Here is the documentation for updating the release notes via the GitHub API.

Acceptance Criteria

  • A script, which when run, creates a release note update based on the last deployed release

Update .md files for SEO-ness

We received an awesome PR for #hacktoberfest on our ruby library
We would love to see the same thing on the README in this repo as well.
Please replace the "-" with "_" in README, CONTRIBUTING, USE_CASES, USAGE files.

Thanks and happy Hacktoberfest!!

Unexpected exception type was thrown during UnitTest

Issue Summary

Found here:

2) Test Failure : UnitTest.TestClient.TestMethodCallWithCancellationToken
   An unexpected exception type was thrown
Expected: System.Threading.Tasks.TaskCanceledException
 but was: System.NullReferenceException : Object reference not set to an instance of an object
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinder.LookForCandidates () [0x00137] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinder.Bind (System.Boolean bReportErrors) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder.BindMethodGroupToArgumentsCore (Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinderResult& pResults, Microsoft.CSharp.RuntimeBinder.Semantics.BindingFlag bindFlags, Microsoft.CSharp.RuntimeBinder.Semantics.ExprMemberGroup grp, Microsoft.CSharp.RuntimeBinder.Semantics.Expr& args, System.Int32 carg, System.Boolean bindingCollectionAdd, System.Boolean bHasNamedArgumentSpecifiers) [0x00042] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder.BindMethodGroupToArguments (Microsoft.CSharp.RuntimeBinder.Semantics.BindingFlag bindFlags, Microsoft.CSharp.RuntimeBinder.Semantics.ExprMemberGroup grp, Microsoft.CSharp.RuntimeBinder.Semantics.Expr args) [0x00067] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCall (Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder payload, Microsoft.CSharp.RuntimeBinder.Semantics.Expr callingObject, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x00287] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.DispatchPayload (Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder payload, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x0000b] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.DispatchPayload (Microsoft.CSharp.RuntimeBinder.RuntimeBinder runtimeBinder, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x0006e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind (System.Dynamic.DynamicMetaObjectBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x00021] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind (System.Dynamic.DynamicMetaObjectBinder action, Microsoft.CSharp.RuntimeBinder.RuntimeBinder binder, System.Dynamic.DynamicMetaObject[] args, System.Collections.Generic.IEnumerable`1[T] arginfos, System.Dynamic.DynamicMetaObject onBindingError) [0x001f5] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject errorSuggestion) [0x0000e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at System.Dynamic.InvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00000] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.DynamicMetaObject.BindInvokeMember (System.Dynamic.InvokeMemberBinder binder, System.Dynamic.DynamicMetaObject[] args) [0x0000b] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.InvokeMemberBinder.Bind (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00016] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) [0x000c6] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) [0x00019] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x000f1] in <7c7d16af841f44d5a362340966c7fd69>:0
at UnitTest.TestClient+<TestMethodCallWithCancellationToken>d__3.MoveNext () [0x00113] in <c0a36338f0ee473a8317e17500d161f9>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9790d962aaad40deb63d33029ba0d2f6>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <9790d962aaad40deb63d33029ba0d2f6>:0
at NUnit.Framework.AsyncSynchronizationContext+AsyncOperation.Invoke () [0x00001] in <746131cbfdc6477ab4c97256f2af20a6>:0
at NUnit.Framework.AsyncSynchronizationContext+AsyncOperationQueue.InvokePendingOperations () [0x00015] in <746131cbfdc6477ab4c97256f2af20a6>:0
at NUnit.Framework.AsyncSynchronizationContext+AsyncOperationQueue.InvokeAll () [0x00022] in <746131cbfdc6477ab4c97256f2af20a6>:0
at NUnit.Framework.AsyncSynchronizationContext.WaitForPendingOperationsToComplete () [0x00001] in <746131cbfdc6477ab4c97256f2af20a6>:0
at NUnit.Framework.AsyncInvocationRegion+AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x00002] in <746131cbfdc6477ab4c97256f2af20a6>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinder.LookForCandidates () [0x00137] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinder.Bind (System.Boolean bReportErrors) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder.BindMethodGroupToArgumentsCore (Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder+GroupToArgsBinderResult& pResults, Microsoft.CSharp.RuntimeBinder.Semantics.BindingFlag bindFlags, Microsoft.CSharp.RuntimeBinder.Semantics.ExprMemberGroup grp, Microsoft.CSharp.RuntimeBinder.Semantics.Expr& args, System.Int32 carg, System.Boolean bindingCollectionAdd, System.Boolean bHasNamedArgumentSpecifiers) [0x00042] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.Semantics.ExpressionBinder.BindMethodGroupToArguments (Microsoft.CSharp.RuntimeBinder.Semantics.BindingFlag bindFlags, Microsoft.CSharp.RuntimeBinder.Semantics.ExprMemberGroup grp, Microsoft.CSharp.RuntimeBinder.Semantics.Expr args) [0x00067] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCall (Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder payload, Microsoft.CSharp.RuntimeBinder.Semantics.Expr callingObject, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x00287] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.DispatchPayload (Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder payload, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x0000b] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.DispatchPayload (Microsoft.CSharp.RuntimeBinder.RuntimeBinder runtimeBinder, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments, Microsoft.CSharp.RuntimeBinder.Semantics.LocalVariableSymbol[] locals) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x0006e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind (System.Dynamic.DynamicMetaObjectBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x00021] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind (System.Dynamic.DynamicMetaObjectBinder action, Microsoft.CSharp.RuntimeBinder.RuntimeBinder binder, System.Dynamic.DynamicMetaObject[] args, System.Collections.Generic.IEnumerable`1[T] arginfos, System.Dynamic.DynamicMetaObject onBindingError) [0x001f5] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject errorSuggestion) [0x0000e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0
at System.Dynamic.InvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00000] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.DynamicMetaObject.BindInvokeMember (System.Dynamic.InvokeMemberBinder binder, System.Dynamic.DynamicMetaObject[] args) [0x0000b] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.InvokeMemberBinder.Bind (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00016] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) [0x000c6] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) [0x00019] in <7c7d16af841f44d5a362340966c7fd69>:0
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x000f1] in <7c7d16af841f44d5a362340966c7fd69>:0
at UnitTest.TestClient+<TestMethodCallWithCancellationToken>d__3.MoveNext () [0x00113] in <c0a36338f0ee473a8317e17500d161f9>:0
--- End of stack trace from previous location where exception was thrown ---
at NUnit.Framework.AsyncInvocationRegion+AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x0001b] in <746131cbfdc6477ab4c97256f2af20a6>:0
at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod () [0x00016] in <746131cbfdc6477ab4c97256f2af20a6>:0

How to fix Mono errors during Travis CI build?

Issue Summary

We are seeing

The command "mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None" exited with 3.

On every build. Can you help with this?

Add a .env_sample file

Our preference is that users have an environment file when using the SendGrid API, because it is less likely that someone would commit their credentials to github.

Please make a couple changes:

  • make a .env_sample file that contains: export SENDGRID_API_KEY=''
  • make (or add) a .gitignore file and include .env
  • add instructions to the README file about how to copy .env_sample to .env and add the API Key

Add/Update Badges on README

Similar to what was done on the SendGrid node README:

  • put the logo at the top of the list
  • Add License like so
  • make sure the other badges are available like so:
![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)

For the following, make sure the correct repo is linked!
For email notifications, you can change the "nodejs" to the language of this repo (e.g. java, python, ruby, php, csharp, go, etc)

[![BuildStatus](https://travis-ci.org/sendgrid/sendgrid-nodejs.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-nodejs)
[![Email Notifications Badge](https://dx.sendgrid.com/badge/nodejs)](https://dx.sendgrid.com/newsletter/nodejs)
[![npm](https://img.shields.io/npm/l/express.svg)]()
[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-nodejs.svg)](https://github.com/sendgrid/sendgrid-nodejs/graphs/contributors)

Thank you and happy #Hacktoberfest!!

HTTP Timeout Parameter

It isn't a bug per se but more of a feature. It would be nice to be able to add a parameter for the HTTP timeout so we can adjust to our needs.

Document new Git workflow in CHANGELOG.md

Issue Summary

We want to update our git workflow to function more like Gitflow. We need to update the CONTRIBUTING.md file and PULL_REQUEST_TEMPLATE to direct contributors to fork/branch off the development branch and to merge their PRs with the development branch. Once this issue is complete, we will be creating the development branch and making that branch the default. This is part of a larger strategy to execute releases for this SDK on a predictable cadence.

Acceptance Criteria

  • Update CONTRIBUTING.md documentation, explaining the process of forking and branching off the development branch and submitting PRs agains the development branch.
  • Update PULL_REQUEST_TEMPLATE with the same addition to the CONTRIBUTING.md documentation.

Tests failing due to incorrect file type of license specified in tests

Issue Summary

The Travis tests are failing on the TestLicenseEndYear test as it cannot find LICENSE.txt

System.IO.FileNotFoundException : Could not find file "/home/travis/build/sendgrid/csharp-http-client/LICENSE.txt"

The test is looking for the wrong file type for the license. The test needs updating to the .md file extension.

I will raise a PR to fix this.

Add a USAGE.md file

Usage files are really nice when they exist in a repo, because it makes it really obvious where to look for information about how to use this tool. It can be frustrating when you expect this file to be there and it's not.
Please add a USAGE.md file, you can see an example of this
here

Please make sure you modify the file for this repo (hint: Most of this information should be in the README file)

Require conformance to style standards

Issue Summary

In the CONTRIBUTING.md file there is a section on Style Guidelines & Naming Conventions. Please review and implement a check in Travis CI. If there are any style errors, either fix or create a rule to exclude the error.

Before writing any code, we suggest you review our CONTRIBUTING.md file and propose your solution for discussion here in the comments. Thank you!

Aceptance Criteria

  • TravisCI checks that the code conforms to our Style Guidelines & Naming Conventions as defined in our CONTRIBUTING.md file
  • tests pass locally, in Travis CI and using Docker

Add a unittest to check the license.md file date range

The end year in the license file should be "this year" and this should be checked on every run of the tests. If the end year is no correct, fail the test.
example:

Copyright (c) 2012-2016 SendGrid, Inc.
It is 2017, so this should be:
Copyright (c) 2012-2017 SendGrid, Inc.
and the test should fail.
--done

Make requests cancellable

HttpClient allows cancellation via CancellationToken. Using this API it is currently not possible to pass a cancellation token. Therefore you cannot cancel long running requests.

It would be helpful in our scenario to be able to cancel running requests. CancellationToken provides a standard way to do this and it should be easy to include this as an extra parameter. Please consider it for an upcoming release.

Thanks!

Add unittest to check for specific repo files

This repo should have the following list of files included:

  • ./Docker or docker/Docker
  • ./docker-compose.yml or ./docker/docker-compose.yml
  • ./.env_sample
  • ./.gitignore
  • ./.travis.yml
  • ./.codeclimate.yml
  • ./CHANGELOG.md
  • ./CODE_OF_CONDUCT.md
  • ./CONTRIBUTING.md
  • ./.github/ISSUE_TEMPLATE
  • ./LICENSE.md
  • ./.github/PULL_REQUEST_TEMPLATE
  • ./README.md
  • ./TROUBLESHOOTING.md
  • ./USAGE.md
  • ./USE_CASES.md

This PR is only asking for tests of the existence of these files, if the files do not exist when you run the tests - do not worry about the tests not passing. We will identify this and create a new PR for the issue.
Thank you!

Add our Developer Experience Engineer career opportunity to the README

Issue Summary

The role of Developer Experience Engineer just became available and we want to announce it in the README. Here is the copy:

If you're a software engineer who is passionate about #DeveloperExperience and/or #OpenSource, this is an incredible opportunity to join our #DX team as a Developer Experience Engineer and work with @thinkingserious and @aroach! Tell your friends :)

Acceptance Criteria

  • The above announcement is added to the Announcements section of this README

Create a Use Cases Directory

Due to the success we have seen from hacktoberfest, we are seeing more people create use cases. This is amazing!
We want to make sure that everyone can find them. Please help us to break up this file and make it easier to read and manage:

  • Create a Use Cases Directory
  • Put a README.md in this directory
  • Make a file in the new directory for each individual Use Case from USE_CASES.md, copy the content to this file
  • For each file you've created, link to it from the README you created
  • Organize the links in the README by type
  • Make sure the names of the files you created are related to the Use Case
    Thank you!

Argument out of range Exception during UnitTest

Issue Summary

Found here:

1) Test Error : UnitTest.TestClient.TestMethodCall
   System.ArgumentOutOfRangeException : Length cannot be less than zero.
Parameter name: length
  at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0004a] in <9790d962aaad40deb63d33029ba0d2f6>:0 
  at Microsoft.CSharp.RuntimeBinder.Syntax.NameTable.Add (System.String key, System.Int32 length) [0x00048] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.Syntax.NameManager.Add (System.String key, System.Int32 length) [0x00010] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetName (System.Type type) [0x0002b] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.LoadSymbolsFromType (System.Type originalType) [0x0004e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetCTypeFromType (System.Type t) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddMethodToSymbolTable (System.Reflection.MemberInfo member, Microsoft.CSharp.RuntimeBinder.Semantics.AggregateSymbol callingAggregate, Microsoft.CSharp.RuntimeBinder.Semantics.MethodKindEnum kind) [0x001d1] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddNamesInInheritanceHierarchy (System.String name, System.Collections.Generic.List`1[T] inheritance) [0x0015d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddNamesOnType (Microsoft.CSharp.RuntimeBinder.SymbolTable+NameHashKey key) [0x0000d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.PopulateSymbolTableWithName (System.String name, System.Collections.Generic.IEnumerable`1[T] typeArguments, System.Type callingType) [0x00056] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.PopulateSymbolTableWithPayloadInformation (Microsoft.CSharp.RuntimeBinder.SymbolTable symbolTable, Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder callOrInvoke, System.Type callingType, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments) [0x00038] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.PopulateSymbolTableWithName (Microsoft.CSharp.RuntimeBinder.SymbolTable symbolTable, System.Type callingType, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x0001d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind (System.Dynamic.DynamicMetaObjectBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x00021] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind (System.Dynamic.DynamicMetaObjectBinder action, Microsoft.CSharp.RuntimeBinder.RuntimeBinder binder, System.Dynamic.DynamicMetaObject[] args, System.Collections.Generic.IEnumerable`1[T] arginfos, System.Dynamic.DynamicMetaObject onBindingError) [0x001f5] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject errorSuggestion) [0x0000e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at System.Dynamic.InvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00000] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.DynamicMetaObject.BindInvokeMember (System.Dynamic.InvokeMemberBinder binder, System.Dynamic.DynamicMetaObject[] args) [0x0000b] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.InvokeMemberBinder.Bind (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00016] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) [0x000c6] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) [0x00019] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x000f1] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at UnitTest.TestClient+<TestMethodCall>d__2.MoveNext () [0x000f3] in <c0a36338f0ee473a8317e17500d161f9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9790d962aaad40deb63d33029ba0d2f6>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <9790d962aaad40deb63d33029ba0d2f6>:0 
  at NUnit.Framework.AsyncSynchronizationContext+AsyncOperation.Invoke () [0x00001] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at NUnit.Framework.AsyncSynchronizationContext+AsyncOperationQueue.InvokePendingOperations () [0x00015] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at NUnit.Framework.AsyncSynchronizationContext+AsyncOperationQueue.InvokeAll () [0x00022] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at NUnit.Framework.AsyncSynchronizationContext.WaitForPendingOperationsToComplete () [0x00001] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at NUnit.Framework.AsyncInvocationRegion+AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x00002] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0004a] in <9790d962aaad40deb63d33029ba0d2f6>:0 
  at Microsoft.CSharp.RuntimeBinder.Syntax.NameTable.Add (System.String key, System.Int32 length) [0x00048] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.Syntax.NameManager.Add (System.String key, System.Int32 length) [0x00010] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetName (System.Type type) [0x0002b] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.LoadSymbolsFromType (System.Type originalType) [0x0004e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetCTypeFromType (System.Type t) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddMethodToSymbolTable (System.Reflection.MemberInfo member, Microsoft.CSharp.RuntimeBinder.Semantics.AggregateSymbol callingAggregate, Microsoft.CSharp.RuntimeBinder.Semantics.MethodKindEnum kind) [0x001d1] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddNamesInInheritanceHierarchy (System.String name, System.Collections.Generic.List`1[T] inheritance) [0x0015d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddNamesOnType (Microsoft.CSharp.RuntimeBinder.SymbolTable+NameHashKey key) [0x0000d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.SymbolTable.PopulateSymbolTableWithName (System.String name, System.Collections.Generic.IEnumerable`1[T] typeArguments, System.Type callingType) [0x00056] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.PopulateSymbolTableWithPayloadInformation (Microsoft.CSharp.RuntimeBinder.SymbolTable symbolTable, Microsoft.CSharp.RuntimeBinder.ICSharpInvokeOrInvokeMemberBinder callOrInvoke, System.Type callingType, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments) [0x00038] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.PopulateSymbolTableWithName (Microsoft.CSharp.RuntimeBinder.SymbolTable symbolTable, System.Type callingType, Microsoft.CSharp.RuntimeBinder.ArgumentObject[] arguments) [0x00000] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore (Microsoft.CSharp.RuntimeBinder.ICSharpBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x0001d] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind (System.Dynamic.DynamicMetaObjectBinder payload, System.Linq.Expressions.Expression[] parameters, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject& deferredBinding) [0x00021] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind (System.Dynamic.DynamicMetaObjectBinder action, Microsoft.CSharp.RuntimeBinder.RuntimeBinder binder, System.Dynamic.DynamicMetaObject[] args, System.Collections.Generic.IEnumerable`1[T] arginfos, System.Dynamic.DynamicMetaObject onBindingError) [0x001f5] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject errorSuggestion) [0x0000e] in <47daad7bf0954a69b4d1d95d4dc334d4>:0 
  at System.Dynamic.InvokeMemberBinder.FallbackInvokeMember (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00000] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.DynamicMetaObject.BindInvokeMember (System.Dynamic.InvokeMemberBinder binder, System.Dynamic.DynamicMetaObject[] args) [0x0000b] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.InvokeMemberBinder.Bind (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) [0x00016] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters, System.Linq.Expressions.LabelTarget returnLabel) [0x000c6] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T] (System.Runtime.CompilerServices.CallSite`1[T] site, System.Object[] args) [0x00019] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x000f1] in <7c7d16af841f44d5a362340966c7fd69>:0 
  at UnitTest.TestClient+<TestMethodCall>d__2.MoveNext () [0x000f3] in <c0a36338f0ee473a8317e17500d161f9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at NUnit.Framework.AsyncInvocationRegion+AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x0001b] in <746131cbfdc6477ab4c97256f2af20a6>:0 
  at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod () [0x00016] in <746131cbfdc6477ab4c97256f2af20a6>:0 

Auto-generate the CHANGELOG.md file upon release

Issue Summary

For every release, we currently hand craft a CHANGELOG.md update, now we would like to automate this process. Please see the existing CHANGELOG.md for formatting structure.

Acceptance Criteria

  • A script, which when run, creates a CHANGELOG.md update based on any merged PRs since the last release.

"Unrecognized UTF8 Byte at position ..."

Issue Summary

Sometimes when I try to send email i got this error.

I use this code for sending mails

public void SendMail(String[] recipients, String subject, String body)
{
    var client = new SendGridAPIClient(Core.Settings.Current.SendGridKey);
    var from = new Email(Core.Settings.Current.From);
    var content = new Content("text/html", body);

    foreach (var email in recipients)
    {
        var to = new Email(email);
        var mail = new Mail(from, subject, to, content);
        dynamic response = client.client.mail.send.post(requestBody: mail.Get());
    }
}    

Technical details:

  • csharp-http-client Version: 1.3.1, from Nuget.org
  • CSharp/.NET Version: 4.5.2

Access forbidden

Issue Summary

Access forbidden error with Visual Studio 2013-Full working code from https://github.com/sendgrid/csharp-http-client/blob/master/Example/Example.cs

Steps to Reproduce

forbidden
envrionmentvariable

  1. Downloaded source from https://github.com/sendgrid/csharp-http-client/blob/master/Example/Example.cs
  2. Changed Environment Variable in local box
  3. Executed the project

Console shows an error as attached.

Technical details:

  • csharp-http-client Version: master (latest commit: [commit number])
  • CSharp Version: 4.5

Implement auto-deploy to package manager

Issue Summary

When all tests on the master branch pass in Travis CI, we would like to auto-deploy the release to the package manager.

Before writing any code, we suggest you review our CONTRIBUTING.md file and propose your solution for discussion here in the comments. Thank you!

Aceptance Criteria

  • when Travis CI passes all tests on the master branch we auto-deploy to the package manager
  • the version is determined by the CHANGELOG.md

Hacktoberfest: SendGrid Current Status

SendGrid DX team current status:

  • Wow
  • OMG
  • THANK YOU

Hacktoberfest 2017 has completely blown us away. We have had over 900 pull requests from over 300 contributors all in the last 30 days. That is more PRs than we normally get in 2 years!
We are actively working to review, comment, and/or merge as many PRs as we possibly can as quickly as we can.

We are currently working on “intaking” all the PRs that have come in, oldest first (we have about 400 remaining to go through). We are making sure that each PR we review is one we have a chance of merging - there have been a couple spammy items that came through. Due to the massive influx of requests so far, @thinkingserious and @mbernier have been working nights and weekends all month just to keep up! We’re not even mad, this is amazing!

Hey, that’s great for you - but what about my shirt!

If you have signed the CLA before 11/1, but haven’t had a PR merged yet, do not despair! We know we are behind on even just commenting on every PR to show you that we received it (something we typically do). If you submitted a mergeable (non-spam, actually adds value to the project) PR during October 2017, we will grant access to this page to redeem your shirt, sticker, and hacker pin. Next year, we will be sure to communicate this information sooner. We are sorry for any confusion we have caused. We appreciate those of you who have reached out to find out what’s going on!

What can I do to help move things along?

Have you signed the CLA yet?
We can only merge items from contributors who signed the CLA

Can you help another contributor?
If you can identify potential problems, add suggestions, or even leave a comment with your review of another PR (Looks good to me! Or I approve this change), that would help us review those PRs much faster, making it easier to get to your PR.

Do you even write tests, friend?
If you see a place where we could have a test to validate a piece of functionality, add it in. We know We know! It’s just another PR we have to review and merge. You’re right, it is! However, the more tests we have, the earlier our CI tool can catch issues, saving us a review as well as back and forth time.

@dhsrocha, @malleshthota, @rohitdaryanani

Add a .codeclimate.yml file to this repo

It is possible to configure how CodeClimate looks at a repository.
These Docs explain how this is done. Please create an appropriate .codeclimate.yml for this repo. It should test the main language of the repo and run tests.

Create first time contributor documentation

Issue Summary

Our open sourced documentation has a great first time contributor page that we wish to duplicate here.

Acceptance Criteria

  • We have a file in the root directory called first-timers.md or similar that helps a first time contributor make their first PR (please use our CONTRIBUTOR.md file for inspiration as well as this page)
  • We provide a link to tasks with the labels "difficulty: easy" and "status: help wanted" (example query) to all the repos listed here, please scroll to the bottom.

What is the benefit of this client?

I apologize for the blunt question, but why not just use HttpClient?
What's the difference between sgClient.your.api.get() and httpClient.GetAsync("Your/API")?

The former might be confusing to C# developers, as the API calls are not truly type safe and are pretty much equivalent to the string...

Sendgrid API Oauth authenication not working

Hi Folks ,

Please share me sample c# code for oauth validation for webhook

Please help me

Send grid , I have map my own client id and secret , please find the sample screen shot.

C#:
HttpResponseMessage response = new HttpResponseMessage();
//var header = Request.Headers.Authorization.ToString();
//string token = header.Replace("Bearer ", "");
//bool IsValid = ValidateToken(token);
//if (IsValid)

Mono is failing when Travis.yml runs

Issue Summary

TravisCI is reporting the following error:

The command "mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None" exited with 2.

Steps to Reproduce

  1. Check the Travis details on one of the pending PRs

How can I send email without using the aysnc method?

Issue Summary

ASP.net webforms project.

Steps to Reproduce

  1. I want to send email using the C# client.
  2. var response = await client.SendEmailAsync(msg);
  3. How can I send the email message without it being async?

Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?

Technical details:

  • csharp-http-client Version: master (latest commit: [commit number])
  • CSharp Version: 4.5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.