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

Server Advertisement Error #13

Open
TylerJohnson177 opened this issue Dec 11, 2022 · 2 comments
Open

Server Advertisement Error #13

TylerJohnson177 opened this issue Dec 11, 2022 · 2 comments

Comments

@TylerJohnson177
Copy link

Not sure if this is a bug or if I am doing something wrong, but when I run "node --es-module-specifier-resolution=node ./start.js" (./start.js is the file path) I get the following error. It begins by initializing the accounts listed in the start.js file (which it should), but then immediately throws a "Server Advertisement Error). I tested this on two different computers and got the same results. I also reinstalled Node JS and FriendConnect and restarted my computer and still got the same error. I copied the error from the friend-connect-error.log file.

OS: Windows 10 (10.0.19044 Build 19044)
Node JS version: 18.12.1

[1670742559799] Server Advertisement Error:

	Name: TypeError

	Message: Wrong arguments

	Stack: TypeError: Wrong arguments
at new Client (C:\Users\Tyler\Desktop\XboxConnect\node_modules\raknet-native\lib\RakNet.js:8:19)
at new RakNativeClient (C:\Users\Tyler\Desktop\XboxConnect\node_modules\bedrock-protocol\src\rak.js:35:19)
at ping (C:\Users\Tyler\Desktop\XboxConnect\node_modules\bedrock-protocol\src\createClient.js:87:15)
at Session.getAdvertisement (file:///C:/Users/Tyler/Desktop/XboxConnect/node_modules/friend-connect/dist/index.js:419:30)
at new Session (file:///C:/Users/Tyler/Desktop/XboxConnect/node_modules/friend-connect/dist/index.js:76:14)
at file:///C:/Users/Tyler/Desktop/XboxConnect/start.js:3:1
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)

	Error: TypeError: Wrong arguments
@jrcarl624
Copy link
Collaborator

This error is ok, it works, there just seems to be a problem on the first ping.

@densellp
Copy link
Contributor

@jrcarl624 might be right. I would suggest that the source code handle the error gracefully and just respond with something like "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

3 participants