NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Question Unknown API error: nameless:missing_api_key
Started by Lupich

Lupich

Lupich

Member
Joined
06 Aug 2022
Last Seen
08 Aug 2022
Topics
1
Posts
3

Hi All,

New to this software, pleasantly surprised to see 2.0 officially launched basically today. Great work I'm loving what I'm seeing so far! Dealing with some minor and expected glitches with something so new!

I configured /plugins/NamelessMC/main.yaml

From the Configuration > API section of my admin panel. API is enabled within that same page.

I am getting this error when I try to start my server, running spigot-1.19.2:

[23:08:48] [Craft Scheduler Thread - 0/ERROR]: [NamelessMC] Unexpected error: Unknown API error: nameless:missing_api_key
[23:08:48] [Craft Scheduler Thread - 0/ERROR]: [NamelessMC] com.namelessmc.plugin.lib.nameless-api.exception.NamelessException: Unknown API error: nameless:missing_api_key
        at com.namelessmc.plugin.lib.nameless-api.RequestHandler.makeConnection(RequestHandler.java:217)
        at com.namelessmc.plugin.lib.nameless-api.RequestHandler.get(RequestHandler.java:87)
        at com.namelessmc.plugin.lib.nameless-api.NamelessAPI.website(NamelessAPI.java:100)
        at com.namelessmc.plugin.common.ApiProvider.api(ApiProvider.java:120)
        at com.namelessmc.plugin.common.AbstractDataSender.lambda$run$3(AbstractDataSender.java:151)
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:82)
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)

 

I've double checked anything I could think of, Googled it a bit but maybe it's too new of an issue?

Any assistance or suggestions would be appreciated!

Lupich · 6 months ago
_pvpsmash_

_pvpsmash_

Member
Joined
21 Jun 2022
Last Seen
15 Jan 2023
Topics
6
Posts
27

 notcied my API KEY & URL was changed during the updgrade from PRE-13 to 2.0.1, in the adminCP the keys changed from:

old key url in admincp: forum.pvpSmash.com/key/url/apikeyhere

new url key:                  pvpSmash.com/key/url/apikeyhere

old API KEY: 4321

new API KEY: 1234 

 

- So both changed, and I updated both correctly also in plugins.yml, etc.

 

My last resort, is changing .yml configs back to forum.pvpsmash.com and see if that works, idk.

FOUNDER OF; PVPSMASH.COM, PVPSMASH.NET & TITAN-MC.NET MINECRAFT NETWORKS.

_pvpsmash_ · 6 months ago
_pvpsmash_

_pvpsmash_

Member
Joined
21 Jun 2022
Last Seen
15 Jan 2023
Topics
6
Posts
27

same issues my end here.

FOUNDER OF; PVPSMASH.COM, PVPSMASH.NET & TITAN-MC.NET MINECRAFT NETWORKS.

_pvpsmash_ · 6 months ago
Lupich

Lupich

Member
Joined
06 Aug 2022
Last Seen
08 Aug 2022
Topics
1
Posts
3

I should also note my issue is on a completely fresh installation as well.

Lupich · 6 months ago
Supercrafter100

Supercrafter100

Support
Joined
05 Oct 2021
Last Seen
23 Jan 2023
Topics
0
Posts
4

This issue often occurs when the Authorization header is removed for some reason during the request.

 

If you are using a webhost, try contacting their support and explaining that the Authorization header got removed when requesting your sites API.

 

I can also suggest updating to the latest version of the NamelessMC plugin. You can find that one here: https://ci.rkslot.nl/job/Nameless%20Plugin/

If you continue to encounter issues, it would help out if you join our official Discord. We can provide support a lot quicker and easier in there. You can join it here: https://discord.gg/nameless/

Best regards,

Supercrafter100

Supercrafter100 · 6 months ago · Last edited: 6 months ago