Skip to content

Error: Inability to Connect to Mojang's API #6

@Pheotis

Description

@Pheotis

Outline of Issue

Attempted Usage

Using the plugin, it is not currently possible for me to register new users using TOTP through the /register TOTP command.

Result of Attempted Usage

On my current installation, 100% of the time, attempting to preform such a registration will result in an error explaining that the plugin could not "load player data from Mojang".
This error message suggests that I may have hit the API's rate limit.
image

Attempts at Troubleshooting the Issue

Rate Limit Consideration

I have confirmed that the rate limit is not the issue:

  • This issue still occurs when 2fa+ is the only plugin operating on the server
  • This issue still occurs when that server is the only program operating on the dedicated box
  • I am able to pull information manually from the database without any problems using
    curl https://api.mojang.com/users/profiles/minecraft/InteriorCamping

Response time consideration

Previously, pulling data from the API took an abnormal amount of time on my box.
image

  • This caused issues with aspects of several plugins, including the skull feature of EssentialsX (usage of which would cause a five second server freeze).
  • After investigating this response time, I have determined that this issue was caused by a mistake in the configuration of my firewall.
    • After correcting that mistake, EssentialsX's skull function appears now functions as intended.
    • After correcting that mistake, 2fa+'s TOTP function is still unable to pull info from the API.

image

Additional Information

The server is running Paper 641 (1.13.2) on Waterfall 290 on Ubuntu Server 18.04 LTS

Conclusion

  • As this issue is not being caused by the rate limit, and as other plugins (EssX) appear to be able to pull information from the API, I was wondering if this might be a plugin-specific issue.
  • As a work-a-round, I was wondering if it would be possible to add the ability to manually pass UUIDs to the plugin through command usage such as 2fa register TOTP <UUID>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions