[GH-ISSUE #93] API Error 404: Not Found #53

Closed
opened 2026-02-28 01:20:46 +03:00 by kerem · 16 comments
Owner

Originally created by @emilstahl on GitHub (Jun 21, 2016).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/93

I'm getting this error.

API Error 404: Not Found

How can I debug?

Originally created by @emilstahl on GitHub (Jun 21, 2016). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/93 I'm getting this error. `API Error 404: Not Found` How can I debug?
kerem closed this issue 2026-02-28 01:20:47 +03:00
Author
Owner

@tuxis-ie commented on GitHub (Jun 21, 2016):

Probably by setting the correct api path values?

<!-- gh-comment-id:227548551 --> @tuxis-ie commented on GitHub (Jun 21, 2016): Probably by setting the correct api path values?
Author
Owner

@emilstahl commented on GitHub (Jun 21, 2016):

@tuxis-ie I don't see anything about paths in the config? I entered the correct IP and API version.

<!-- gh-comment-id:227563454 --> @emilstahl commented on GitHub (Jun 21, 2016): @tuxis-ie I don't see anything about paths in the config? I entered the correct IP and API version.
Author
Owner

@tuxis-ie commented on GitHub (Jun 21, 2016):

Which version are you running? Are you running a simple setup? Can you reach the Api manually?

<!-- gh-comment-id:227566230 --> @tuxis-ie commented on GitHub (Jun 21, 2016): Which version are you running? Are you running a simple setup? Can you reach the Api manually?
Author
Owner

@emilstahl commented on GitHub (Jun 21, 2016):

@tuxis-ie I set $apisid = to the server-id configured in pdns.conf

I just tried changing it back to localhost and it works. 👍

<!-- gh-comment-id:227573314 --> @emilstahl commented on GitHub (Jun 21, 2016): @tuxis-ie I set `$apisid =` to the server-id configured in pdns.conf I just tried changing it back to localhost and it works. 👍
Author
Owner

@emilstahl commented on GitHub (Jun 21, 2016):

I can see the zones now, however when I click on the records icon, I get the 404 error.

<!-- gh-comment-id:227573906 --> @emilstahl commented on GitHub (Jun 21, 2016): I can see the zones now, however when I click on the records icon, I get the 404 error.
Author
Owner

@mschirrmeister commented on GitHub (Jul 20, 2016):

I am seeing the same error when I try to click the records button for a zone.
Yes, I can call the api manually just fine.

I set $apivers to 1.
I looked at the actual URI that it uses when I get the error and the code is constructing a wrong URI. The URI looks something like this /api/v1api/v1/servers/.....
So it is appending api/v1 somewhere in the code. I was not able to figure out where it is doing this. But I think this is the problem.

<!-- gh-comment-id:233990207 --> @mschirrmeister commented on GitHub (Jul 20, 2016): I am seeing the same error when I try to click the records button for a zone. Yes, I can call the api manually just fine. I set `$apivers` to **1**. I looked at the actual URI that it uses when I get the error and the code is constructing a wrong URI. The URI looks something like this `/api/v1api/v1/servers/....`. So it is appending `api/v1` somewhere in the code. I was not able to figure out where it is doing this. But I think this is the problem.
Author
Owner

@tuxis-ie commented on GitHub (Jul 20, 2016):

Which version of pdns?

<!-- gh-comment-id:233990520 --> @tuxis-ie commented on GitHub (Jul 20, 2016): Which version of pdns?
Author
Owner

@mschirrmeister commented on GitHub (Jul 20, 2016):

4.0.0 from https://repo.powerdns.com/centos/x86_64/7/auth-40/ and nsedit here from the master branch.

<!-- gh-comment-id:234000782 --> @mschirrmeister commented on GitHub (Jul 20, 2016): 4.0.0 from https://repo.powerdns.com/centos/x86_64/7/auth-40/ and nsedit here from the master branch.
Author
Owner

@tuxis-ie commented on GitHub (Jul 20, 2016):

There is some (or a lot?) of work todo to support 4.0 like we should. I didn't have time nor need to do so, and now I just don't have the time.

So help is appreciated in improving nsedit.

<!-- gh-comment-id:234012295 --> @tuxis-ie commented on GitHub (Jul 20, 2016): There is some (or a lot?) of work todo to support 4.0 like we should. I didn't have time nor need to do so, and now I just don't have the time. So help is appreciated in improving nsedit.
Author
Owner

@luckyraul commented on GitHub (Aug 1, 2016):

I have only notices prefix api/v1/ beetween old and new urls. So It can be not a such trouble.

  • additional . after domain name
<!-- gh-comment-id:236622884 --> @luckyraul commented on GitHub (Aug 1, 2016): I have only notices prefix `api/v1/` beetween old and new urls. So It can be not a such trouble. - additional . after domain name
Author
Owner

@tuxis-ie commented on GitHub (Aug 3, 2016):

No. They changed a lot more. Including the fact that records are no longer rrsets, but part of rrsets.

Anyway, I'm working on v1.0 for nsedit, making it ready for 4.0 and prettier to use and read the code.

<!-- gh-comment-id:237173661 --> @tuxis-ie commented on GitHub (Aug 3, 2016): No. They changed a lot more. Including the fact that records are no longer rrsets, but part of rrsets. Anyway, I'm working on v1.0 for nsedit, making it ready for 4.0 and prettier to use and read the code.
Author
Owner

@luckyraul commented on GitHub (Aug 3, 2016):

@tuxis-ie Do you have a approximate schedule for this release ?

<!-- gh-comment-id:237201625 --> @luckyraul commented on GitHub (Aug 3, 2016): @tuxis-ie Do you have a approximate schedule for this release ?
Author
Owner

@tuxis-ie commented on GitHub (Aug 3, 2016):

I'm working on it, and it starts looking like something. See https://github.com/tuxis-ie/nsedit/tree/pdns-40

<!-- gh-comment-id:237210140 --> @tuxis-ie commented on GitHub (Aug 3, 2016): I'm working on it, and it starts looking like something. See https://github.com/tuxis-ie/nsedit/tree/pdns-40
Author
Owner

@tuxis-ie commented on GitHub (Aug 4, 2016):

This should be #73. Closing this one, keeping #73 in the loop.

<!-- gh-comment-id:237568294 --> @tuxis-ie commented on GitHub (Aug 4, 2016): This should be #73. Closing this one, keeping #73 in the loop.
Author
Owner

@tuxis-ie commented on GitHub (Aug 5, 2016):

Please note: https://github.com/tuxis-ie/nsedit/releases/tag/v1.0

<!-- gh-comment-id:237831657 --> @tuxis-ie commented on GitHub (Aug 5, 2016): Please note: https://github.com/tuxis-ie/nsedit/releases/tag/v1.0
Author
Owner

@mikaelz commented on GitHub (Sep 4, 2018):

Adding api=yes to pdns.conf solved the issue

<!-- gh-comment-id:418385651 --> @mikaelz commented on GitHub (Sep 4, 2018): Adding `api=yes` to pdns.conf solved the issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsedit#53
No description provided.