We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://status.sendgrid.com/ says it's operational
I'm using the exact example code here: https://docs.sendgrid.com/api-reference/api-keys/create-api-keys
Why am I getting a server error?
package main import ( "fmt" "log" "os" "github.com/sendgrid/sendgrid-go" ) func main() { apiKey := os.Getenv("SENDGRID_API_KEY") host := "https://api.sendgrid.com" request := sendgrid.GetRequest(apiKey, "/v3/api_keys", host) request.Method = "POST" request.Body = []byte(`{ "name": "My API Key", "scopes": [ "mail.send", "alerts.create", "alerts.read" ] }`) response, err := sendgrid.API(request) if err != nil { log.Println(err) } else { fmt.Println(response.StatusCode) fmt.Println(response.Body) fmt.Println(response.Headers) } }
{"errors":[{"field":null,"message":"internal server error"}]}
github.com/sendgrid/sendgrid-go v3.10.5+incompatible
$ go version go version go1.16.5 darwin/amd64
The text was updated successfully, but these errors were encountered:
I updated my key permissions and the result is different, but a 500 should not have been sent back regardless.
Sorry, something went wrong.
Hi @jb185555, I wasn't able to reproduce the issue locally. Feel free to reach out to SendGrid customer support in order to properly debug this issue.
No branches or pull requests
https://status.sendgrid.com/ says it's operational
I'm using the exact example code here:
https://docs.sendgrid.com/api-reference/api-keys/create-api-keys
Why am I getting a server error?
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: