HUGO

Error faced while starting the server

Can anyone please help me out with below error?
this error comes up when I type hugo server to start my hugo a a port.

start building sites …

hugo v0.84.4+extended darwin/amd64 BuildDate=unknown

ERROR 2021/07/05 15:57:24 Failed to get JSON resource “https://github.cerner.com/api/v3/repos/engineering/adr/issues?state=open”: Failed to retrieve remote file: Unauthorized, body: "{“message”:“Bad credentials”,“documentation_url”:"https://docs.github.com/enterprise/2.22/rest"}"

If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:

ignoreErrors = [“error-remote-getjson”]

Built in 2106 ms

Error: Error building site: logged 1 error(s)

I don’t think that you will get any help without a sample repository of your website. What the error (very verbose) explains is that you try to load something, probably via GetJSON, and it’s on a server that requires authentication. You probably do not have added headers with the authentication parameters. That is probably the problem. But without the actual code of what is happening there will be a lot of “probably’s” in there.