mexcdevelop / mexc-api-sdk

MIT License
187 stars 77 forks source link

Creating client gives error code 500 #42

Open OishikGuha opened 1 year ago

OishikGuha commented 1 year ago

I am using react NextJS's api route to make a client using mexc's sdk. This is my code:

import * as Mexc from "../../../../mexc-sdk"

export const GET = async (request) => {

  const client = Mexc.Spot(process.env.NEXT_PUBLIC_MEXC_ACCESSKEY, process.env.MEXC_SECRETKEY, { baseURL: 'https://api.mexc.com' })
  // console.log(client)

  return new Response("Yo.", { status: 200 })
}

But whenever I fetch this api route, it gives me this error: image