Closed ggomaeng closed 2 months ago
Workaround, but it should work out of the box.
import axios from 'axios';
import { NeynarAPIClient } from '@neynar/nodejs-sdk';
const client = new NeynarAPIClient(NEYNAR_API_KEY, {
axiosInstance: axios.create({
headers: {
'User-Agent': 'nodejs',
},
}),
});
@ggomaeng What is the version of nodejs you are using?
@ggomaeng What is the version of nodejs you are using?
v18.18.2
@ggomaeng Sorry for getting back this late.
I did try with the version that you mentioned, but it worked for me.
@ggomaeng Closing this issue. Feel free to create a new one if needed.
Seems like neynar's axios dependency doesn't work properly in node.js environment.
Error
Steps to reproduce
Create a script that uses Neynar API Client in a node.js environment.
Nenyar version
^1.13.1
Related: https://github.com/axios/axios/issues/6122