Skip to content
New issue

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

TypeError: Wrong arguments #20

Closed
sonyakun opened this issue Mar 18, 2023 · 5 comments
Closed

TypeError: Wrong arguments #20

sonyakun opened this issue Mar 18, 2023 · 5 comments

Comments

@sonyakun
Copy link

node --es-module-specifier-resolution=node  --experimental-fetch index.js

I get the following error when I run

(node:17644) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
[FriendConnect [email protected]] Initializing Account
[FriendConnect [email protected]] Initializing Account
[FriendConnect ] Server Advertisement Error
Error Name:  TypeError
Error Message:  Wrong arguments
Error Stack:  TypeError: Wrong arguments
    at new Client (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\raknet-native\lib\RakNet.js:8:19)
    at new RakNativeClient (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\bedrock-protocol\src\rak.js:35:19)
    at ping (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\bedrock-protocol\src\createClient.js:87:15)
    at Session.getAdvertisement (file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/node_modules/friend-connect/dist/index.js:419:30)
    at new Session (file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/node_modules/friend-connect/dist/index.js:76:14)
    at file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/index.js:3:1

The part that looks like%E3%83%89%E3%82%AD%E3 is a Japanese character.

@sonyakun sonyakun changed the title error TypeError: Wrong arguments Mar 18, 2023
@jrcarl624
Copy link
Owner

What is your config?

@7dpk
Copy link

7dpk commented May 15, 2023

I'm getting similar issue with
image
my config is
image

@sonyakun
Copy link
Author

What is your configuration?

Sorry, this is over 2 months late. By configuration, do you mean the NodeJS version, etc.? The version of Nodejs is v18.15.0. The version of friend-connect was 0.7.6 (latest).

@7dpk
Copy link

7dpk commented Aug 7, 2023

It's node v18.x.x the version of friend-connect is latest, it runs fine, just the player count ping isn't working, also the after a while we couldn't join using the bot, says "server is unavailable to join". I'm using amazon-linux, and when the run the server player count ping manually using the library you've used it works, but in the bot it doesn't

@densellp
Copy link
Collaborator

issue #13 address this. Not a big deal, just errors out on first ping. Please close issue if it has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants