Q&A

User profile returns 404 not found even with valid token and userId

Pre condition, Condition to reproduce

GET https://api.line.me/v2/bot/profile/{userId}

Issue/ Error Message details

With a valid long-lived token, verified with POST https://api.line.me/v2/oauth/verify and got the following result { "client_id": "REDACTED", "expires_in": 3153597410, "scope": "P" }

making a request to GET https://api.line.me/v2/bot/profile/{userId} with userId which belongs to a LINE user whose privacy settings allowed all sharing and already added the LINE Official Account as a friend results in 404 http status code with the following JSON response { "message": "Not found" }

Accompanying respective source code

Resolution Tried

Making requests with a newly issued long-lived token.

Reference information (Version / Platform/ environment)

NodeJS - Axios library

Postman

curl

  • 0
  • 0
  • 633
  • X(旧Twitter) facebook

関連する質問

    関連する質問はありません

本当によろしいですか? question.vm