asadsid95 / port-folio

https://port-folio-asadsid95.vercel.app
0 stars 0 forks source link

contact info needs to be sent to backend to send email to owner #14

Closed asadsid95 closed 11 months ago

asadsid95 commented 12 months ago

User's entered info (name, email, message) should be used to send an email to my email address

asadsid95 commented 11 months ago

Error when sending info to sendGrid

ERROR:  ResponseError: Bad Request
    at eval (webpack-internal:///(rsc)/./node_modules/@sendgrid/client/src/classes/client.js:110:39)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  response: {
      server: 'nginx',
      date: 'Wed, 29 Nov 2023 21:42:03 GMT',
      'content-type': 'application/json',
      'content-length': '185',
      connection: 'close',
      'access-control-allow-origin': 'https://sendgrid.api-docs.io',
      'access-control-allow-methods': 'POST',
      'access-control-allow-headers': 'Authorization, Content-Type, On-behalf-of, x-sg-elas-acl',
      'access-control-max-age': '600',
      'strict-transport-security': 'max-age=600; includeSubDomains'
    },
    body: { errors: [Array] }
  }
}