script

script

Pigeon library timeout error

Hi,
I have pigeon configured and I have obtained the certificates as mentioned in the documentation by converting key.12 and cert.12 into key.pem and cert.pem on a command line. But when I try to test the notification on the console. I am getting these logs and then the response is timeout. It’s my first time playing with push notifications.

 00:40:15.086 function=decode/3 module=ssl_alert [info] TLS :client: In state :cipher received 
 SERVER ALERT: Fatal - Unknown CA

 00:40:16.062 function=decode/3 module=ssl_alert [info] TLS :client: In state :cipher received 
 SERVER ALERT: Fatal - Unknown CA

 00:40:17.150 function=decode/3 module=ssl_alert [info] TLS :client: In state :cipher received 
 SERVER ALERT: Fatal - Unknown CA


    %Pigeon.APNS.Notification{
      collapse_id: nil,
      device_token: 
      "83a1497681c2e9",
      expiration: nil,
      id: nil,
      payload: %{"aps" => %{"alert" => "testing push notification"}},
      priority: nil,
      push_type: "alert",
      response: :timeout,
      topic: "topic_name"
     }

Pigeon version is 0.14 and the configuration is below:
It’s a umbrella application and these settings are present in the root config file.

config :pigeon, :apns,
apns_default: %{
  cert: "priv/certs/cert.pem",
  key: "priv/certs/key_unencrypted.pem",
  mode: :dev
}

Any help will be much appreciaated.
Thank you

Most Liked

hpopp

hpopp

Pigeon 0.14 is quite an old version, I’d recommend upgrading to 1.6. Also, what version of Kadabra are you using?

Last Post!

hpopp

hpopp

Did you update to Kadabra 0.6 as well? There have been changes with the CA validation.

Where Next?

Popular in Questions Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 55125 245
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement