dashbitco / broadway_cloud_pub_sub

A Broadway producer for Google Cloud Pub/Sub
Apache License 2.0
70 stars 24 forks source link

v0.7.0 no function clause matching in BroadwayCloudPubSub.GoogleApiClient.handle_response/2 #73

Closed ulissesalmeida closed 2 years ago

ulissesalmeida commented 2 years ago

Hi everyone,

It only happened once until now and we're using this library for months. I did a quick overview on the closed issues and I couldn't find anything similar. I think worth communicate.

FunctionClauseError no function clause matching in BroadwayCloudPubSub.GoogleApiClient.handle_response/2
arg0:  {:error, :invalid, 122880}
arg1:  :receive_messages
lib/broadway_cloud_pub_sub/google_api_client.ex in BroadwayCloudPubSub.GoogleApiClient.receive_messages/3 at line 113
lib/broadway_cloud_pub_sub/producer.ex in BroadwayCloudPubSub.Producer.handle_receive_messages/1 at line 237
lib/broadway/topology/producer_stage.ex in Broadway.Topology.ProducerStage.handle_info/2 at line 229
lib/gen_stage.ex in GenStage.noreply_callback/3 at line 2117
gen_server.erl in :gen_server.try_dispatch/4 at line 695
gen_server.erl in :gen_server.handle_msg/6 at line 771
proc_lib.erl in :proc_lib.init_p_do_apply/3 at line 226

Elixir 1.13.2 Erlang: 24.2

josevalim commented 2 years ago

Thank you! It seems an unexpected connection crash which should be hopefully recovered by a supervisor. This error no longer applies to main though as we moved away from Tesla in favor of Finch. :)