String reference not set to an instance of a String. (Parameter 's')

0

Enter image description here Hello.

Can someone help me?

I'm getting this error only when I publish to AWS EB.

[HttpGet]
        public IActionResult Index()
        {
            string settings = "Testtttttttttt";
            return Ok(settings);
        }
  • Hi, @DevMarcelF

    Add information about your application and framework, such as version.
    Also add configuration information about Elastic Beanstalk.

    I'm assuming it's ASP.NET MVC from the logs, but I'm not sure otherwise.

gefragt vor 2 Jahren221 Aufrufe
1 Antwort
0
Akzeptierte Antwort

It was a secret not being set in production.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen