Comments (12)
ой ватафак а почему оно вообще билдилось тогда...
from puregram.
панятна
from puregram.
get message.forwardOrigin will throw error
я forwardOrigin нигде не использую
не очень понял а как ты ошибку то затриггерил? есть minimal reproducible code?
from puregram.
я выкатил как отдельный коммит но пока что без новой версии, надо понять как ты затриггерил это
from puregram.
Мне в чат прилетело это (бот в чате юзается). Туда прислали сообщ с другого канала, в стэке ошибки есть memoizeGetters где вызвался геттер forwardOrigin и от этого крашилось. Где именно memoizeGetters вызывался не смог посмотреть, вероятно в каком-то лупе.
from puregram.
@AlexOwl фулл трейсбек не сможешь достать, да?
from puregram.
По нему непонятно
unexpected uncaugh error #7899 Error: TypeError: Cannot read properties of undefined (reading 'type')
at Message.get forwardOrigin (/app/node_modules/puregram/lib/common/structures/message.js:102:33)
at Message.get [as forwardOrigin] (/app/node_modules/puregram/lib/utils/helpers.js:151:33)
at serialize (/app/node_modules/inspectable/lib/index.js:36:37)
at Message.value (/app/node_modules/inspectable/lib/index.js:18:29)
at formatValue (node:internal/util/inspect:805:19)
at formatProperty (node:internal/util/inspect:1926:11)
at formatRaw (node:internal/util/inspect:1054:9)
at formatValue (node:internal/util/inspect:840:10)
at Object.inspect (node:internal/util/inspect:364:10)
at Object.inspect (/app/node_modules/inspectable/lib/index.js:12:34)
from puregram.
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
at new NodeError (node:internal/errors:405:5)
at Function.fail (node:internal/assert:20:9)
at handleMaxCallStackSize (node:internal/util/inspect:1556:10)
at formatRaw (node:internal/util/inspect:1062:12)
at formatValue (node:internal/util/inspect:840:10)
at Object.inspect (node:internal/util/inspect:364:10)
at Object.inspect (/app/node_modules/inspectable/lib/index.js:12:34)
at stringify (/app/node_modules/inspectable/lib/index.js:5:153)
at MessageContext.value (/app/node_modules/inspectable/lib/index.js:19:20)
at formatValue (node:internal/util/inspect:805:19) {
code: 'ERR_INTERNAL_ASSERTION'
}
Error: TypeError: Cannot read properties of undefined (reading 'type')
at Message.get forwardOrigin (/app/node_modules/puregram/lib/common/structures/message.js:102:33)
at Message.get [as forwardOrigin] (/app/node_modules/puregram/lib/utils/helpers.js:151:33)
at serialize (/app/node_modules/inspectable/lib/index.js:36:37)
at Message.value (/app/node_modules/inspectable/lib/index.js:18:29)
at formatValue (node:internal/util/inspect:805:19)
at formatProperty (node:internal/util/inspect:1926:11)
at formatRaw (node:internal/util/inspect:1054:9)
at formatValue (node:internal/util/inspect:840:10)
at Object.inspect (node:internal/util/inspect:364:10)
at Object.inspect (/app/node_modules/inspectable/lib/index.js:12:34)
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
at new NodeError (node:internal/errors:405:5)
at Function.fail (node:internal/assert:20:9)
at handleMaxCallStackSize (node:internal/util/inspect:1556:10)
at formatRaw (node:internal/util/inspect:1062:12)
at formatValue (node:internal/util/inspect:840:10)
at Object.inspect (node:internal/util/inspect:364:10)
at Object.inspect (/app/node_modules/inspectable/lib/index.js:12:34)
at stringify (/app/node_modules/inspectable/lib/index.js:5:153)
at MessageContext.value (/app/node_modules/inspectable/lib/index.js:19:20)
at formatValue (node:internal/util/inspect:805:19)
> NX Successfully ran target serve for project
продолжение
from puregram.
После вот этого упало
puregram:updates:handleUpdate update payload: {"message_id":***,"from":{"id":***,"is_bot":false,"first_name":"***","username":"***"},"chat":{"id":***,"title":"***","type":"supergroup"},"date":***,"message_thread_id":***,"reply_to_message":{"message_id":**,"from":{"id":***,"is_bot":false,"first_name":"***","last_name":"***","username":"***","is_premium":true},"chat":{"id":***,"title":"***","type":"supergroup"},"date":***,"forward_origin":{"type":"channel","chat":{"id":***,"title":"***","username":"***","type":"channel"},"message_id":***,"date":***},"forward_from_chat":{"id":***,"title":"***","username":"***","type":"channel"},"forward_from_message_id":***,"forward_date":***,"photo":[{"file_id":"***","file_unique_id":"***","file_size":***,"width":67,"height":90},{"file_id":"***","file_unique_id":"***","file_size":***,"width":240,"height":320},{"file_id":"***","file_unique_id":"***","file_size":***,"width":600,"height":800},{"file_id":"***","file_unique_id":"***","file_size":***,"width":960,"height":1280}],"caption":"***","caption_entities"](***;:[{"offset":27,"length":32,"type":"url"}]},"text":"***"}
from puregram.
good с утра погляжу
from puregram.
надеюсь что тот possible fix на самом деле fix, не очень понимаю как мне потестить прям нормально
from puregram.
Related Issues (20)
- Issue calling answerPreCheckoutQuery HOT 4
- Ошибка получения MessageContext HOT 2
- sendMediaGroup ignores additional API params HOT 12
- `edited_channel_post` не ловит апдейты при изменении поста HOT 1
- Typesctipt does not comile HOT 9
- ctx.sendVoice возвращает ошибку при MediaSource.buffer(audio) HOT 4
- При { parse_mode: 'markdownv2' } и при использовании точки в сообщении вылетает ошибка. HOT 3
- ForwardedMessage is undefined HOT 14
- TypeScript. Ошибка сборки. HOT 11
- Устаревшая документация или примеры. HOT 33
- Типизация собственной реализации хранилища. HOT 12
- Сессии недоступны в других контекстах. HOT 3
- When i upload a file use Bun runtime i get AbortError HOT 1
- add @puregram/markup and @puregram/callback-data to ISSUE_TEMPLATE HOT 2
- add @puregram/markup support for TelegramInputMessageContent HOT 1
- Некорректная работа @puregram/markup HOT 7
- stopPolling -> setWebhook = infinite error HOT 3
- suppress: true incorrect behaviour HOT 5
- mediaGroup param is not immutable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puregram.