Skip to content

@firebase/firestore: Firestore (10.5.0): FIRESTORE (10.5.0) INTERNAL ASSERTION FAILED: Unexpected state #7717

@brianmhunt

Description

@brianmhunt

[REQUIRED] Environment info

firebase-tools: 12.7.0

Platform:. Codespace/Ubuntu.

[REQUIRED] Test case

Unable to reproduce, sorry. Error emits from mutation:624 in serverTransformResults, specifically:

hardAssert(
    fieldTransforms.length === serverTransformResults.length,
    `server transform result count (${serverTransformResults.length}) ` +
      `should match field transform count (${fieldTransforms.length})`
  );
CleanShot 2023-10-19 at 13 10 45@2x

The stack trace does not show where this occurs.

[REQUIRED] Steps to reproduce

In our app when using the emulator this is occurring infrequently but regularly. It is a complex and we cannot easily narrow the trigger point.

It did not occur with 9.x.

[REQUIRED] Expected behavior

Firestore actions should perform

[REQUIRED] Actual behavior

Noted error.

Related: firebase/firebase-tools#1073

All we seem to see in the firestore-debug.log is:

Oct 19, 2023 5:11:27 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
Oct 19, 2023 5:12:13 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
Oct 19, 2023 5:12:28 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
Oct 19, 2023 5:13:13 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
Oct 19, 2023 5:13:28 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.

I appreciate this may be difficult to reproduce but I wanted to at least note it for visibility and discovery. If we get more info we will share.

Thank you!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions