Skip to content

Sentry - runtime.boundsError: runtime error: index out of range [0] with length 0 #411

Description

@sentry

Sentry Issue: API-3J

runtime.boundsError: runtime error: index out of range [0] with length 0
  File "github.com/UTDNebula/nebula-api/api/controllers/section.go", line 203, in sectionCourse
  File "github.com/UTDNebula/nebula-api/api/controllers/section.go", line 168, in SectionCourseById
  File "github.com/gin-gonic/gin@v1.10.1/context.go", line 185, in (*Context).Next
  File "github.com/gin-gonic/gin@v1.10.1/context.go", line 185, in (*Context).Next
  File "github.com/UTDNebula/nebula-api/api/server.go", line 118, in LogRequest
...
(7 additional frame(s) were not displayed)

This is the HTTP Request that caused this issue

curl \
 -H "Connection: close" \
 -H "Host: 127.0.0.1:8080" \
 "http://127.0.0.1:8080/section/000000000000000000000000/course"

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1A task suitable for someone who is comfortable helping with basic issues.bug reportSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions