Can't Make Requests With Bearer Token in Next.js

Can't Make Requests With Bearer Token in Next.js

Hello, 

Any ideas why my request would work using postman and python but not within Next.js or node?
I'm able to generate the access token fine.

My error is:
  code: 'HPE_INVALID_HEADER_TOKEN',
    reason: 'Invalid header value char',

Any help appreciated 

            Zoho Marketing Automation

                      Zoho Pagesense Resources

                        Zoho SalesIQ Resources



                              Zoho TeamInbox Resources

                                Zoho DataPrep Resources



                                  Zoho CRM Plus Resources

                                    Zoho Books Resources


                                      Zoho Subscriptions Resources

                                        Zoho Desk Resources

                                          Zoho Projects Resources


                                            Zoho Sprints Resources


                                              Qntrl Resources


                                                Zoho Creator Resources


                                                  Zoho WorkDrive Resources



                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now