Jump to content

Issues with whois API request


Go to solution Solved by UmbHost Limtied,

Recommended Posts

When I try to make an API request (/includes/api.php?action=DomainWhois&responsetype=json) for the whois search I receieve a 500 error.

From the error in the log, it looks to be an issue with a vendor library:

{main} {"exception
[error] [WHMCS Application] ERROR: Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in /home/wwwroot/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:19 Stack trace: #0 /home/sites/25a/2/27a7ef7eec/my/wwwroot/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(36): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent() #1 /home/wwwroot/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /home/wwwroot/includes/api.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\Http\Message\JsonResponse)) #3

Interestingly the error only occurs with the external api, if I make an internal api request it works.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated