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

Error message #41

Closed
Ozymandog opened this issue Oct 6, 2021 · 5 comments
Closed

Error message #41

Ozymandog opened this issue Oct 6, 2021 · 5 comments

Comments

@Ozymandog
Copy link

Haha hey again. This error shows up when I try to run the bot. It's on my old pc that used to have it but I deleted it and now I'm reinstalling it
Screenshot 2021-10-05 231721

aa is just what I renamed hypixel-discord-chat-bridge-master

@itsneyoa
Copy link
Contributor

itsneyoa commented Oct 6, 2021

By reinstalling you've updated to the latest version - make sure your config.json is up to date with config.example.json, it looks like you're missing this block:

"express": {
  "enabled": false,
  "port": 8880,
  "authorization": "authorizationHeaderString"
}

@Ozymandog
Copy link
Author

By reinstalling you've updated to the latest version - make sure your config.json is up to date with config.example.json, it looks like you're missing this block:

"express": {
  "enabled": false,
  "port": 8880,
  "authorization": "authorizationHeaderString"
}

What is that? What do I need to add to that?

@Ozymandog
Copy link
Author

Ozymandog commented Oct 7, 2021

By reinstalling you've updated to the latest version - make sure your config.json is up to date with config.example.json, it looks like you're missing this block:

"express": {
  "enabled": false,
  "port": 8880,
  "authorization": "authorizationHeaderString"
}

What's the authorization and api port where do I find that?

@Senither
Copy link
Owner

Senither commented Oct 7, 2021

You need to make sure the keys from the config.example.json file also exists in your config.json file, the keys being express, enabled, port, authorization, the values is customizable and can be changed to anything you'd like.

The port you set is the port the API will be running on, and the authorization value you set is what is required to be in the request header when you try communicating with the API, if you don't want to use the API you can just copy the keys and values into your config but leave the enabled key at false, so the API is never started, and the other values aren't used.

@Ozymandog
Copy link
Author

You need to make sure the keys from the config.example.json file also exists in your config.json file, the keys being express, enabled, port, authorization, the values is customizable and can be changed to anything you'd like.

The port you set is the port the API will be running on, and the authorization value you set is what is required to be in the request header when you try communicating with the API, if you don't want to use the API you can just copy the keys and values into your config but leave the enabled key at false, so the API is never started, and the other values aren't used.

okay, thank you

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