Skip to content

Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "undefined" #3

Description

@pinest94

error message : Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "undefined"

원인) 서버에서 위와 같은 에러메시지는 GET방식으로 전송 시 URL의 parameter가 undefined 인 경우에 발생한다.

해결) router.push({ name: "링크", params: {purchaseId : purchaseId}}) 형태로 페이지를 이동하는데 router.js에 path등록 시 path: "/paySuccess/:id" 형태로 등록했기 때문에 purchaseId는 undefined값을 갖게 된 것이다. 따라서 path: "/paySuccess/:purchaseId" 로 변경.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions