Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特定ユーザーをフォローしようとするとエラーが出る #31

Open
naaaaaaaaaaaf opened this issue Nov 18, 2019 · 2 comments

Comments

@naaaaaaaaaaaf
Copy link

内容

特定ユーザー( https://stellaria.network/@Eai )をリモートフォローしようとすると以下のエラーが出てフォローができません。

{
	"message": "Internal error occurred. Please contact us if the error persists.",
	"code": "INTERNAL_ERROR",
	"id": "5d37dbcb-891e-41ca-a3d6-e690c97775ac",
	"kind": "server",
	"info": {
		"e": {
			"message": "invalid person: invalid name",
			"code": "Error",
			"stack": "Error: invalid person: invalid name\n at validatePerson (/home/dolphin/dolphin/built/remote/activitypub/models/person.js:52:20)\n at Object.createPerson (/home/dolphin/dolphin/built/remote/activitypub/models/person.js:102:17)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:93:5)\n at async fetchAny (/home/dolphin/dolphin/built/server/api/endpoints/ap/show.js:126:22)\n at async /home/dolphin/dolphin/built/server/api/endpoints/ap/show.js:37:20\n at async Object.exports.default (/home/dolphin/dolphin/built/server/api/call.js:36:12)"
		}
	}
}

環境

Dolphin v1.2.1

OS: Ubuntu 18.04
node.js v12.13.0
postgresql v11.5
redis v4.0.9

@syuilo
Copy link
Member

syuilo commented Nov 18, 2019

名前が長すぎる可能性があります。
カスタム絵文字が含まれているようなので一見短そうですが文字列表記にした時に制限を超過していると思われます

@syuilo
Copy link
Member

syuilo commented Nov 18, 2019

制限を緩和するか、わかりやすいエラーメッセージを表示するようにするかしたいと思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants