syedmuzamilm
(ArgumentError) argument error :erlang.integer_to_binary("115762146899049015649")
I was actually converting the google_id to string but when i run my programm i am getting the error…
google_id = Integer.to_string(user["id"])
when i run the programm mix run --no-halt and try to login with google. I am getting this error:
** (exit) an exception was raised:
** (ArgumentError) argument error
:erlang.integer_to_binary("115762146899049015649")
(goop 0.1.0) lib/rath/mutations/users.ex:28: Rath.Mutations.Users.google_find_or_create/3
(goop 0.1.0) lib/jetray/routes/google_auth.ex:62: anonymous fn/2 in Jetray.Routes.GoogleAuth.do_match/4
(goop 0.1.0) lib/plug/router.ex:284: Jetray.Routes.GoogleAuth.dispatch/2
(goop 0.1.0) lib/jetray/routes/google_auth.ex:1: Jetray.Routes.GoogleAuth.plug_builder_call/2
(plug 1.11.1) lib/plug.ex:168: Plug.forward/4
(goop 0.1.0) lib/plug/router.ex:284: Jetray.dispatch/2
(goop 0.1.0) lib/jetray.ex:1: Jetray.plug_builder_call/2
Most Liked
Nicd
Your user["id"] is already a string, not an integer.
8
Popular in Questions
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database.
Dep...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
Hi,
I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
Sometimes I want to check if the input into a function is not a blank string.
My first approach:
defmodule Example do
def do_stuff(s...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Other popular topics
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
15:22:35.803 [error] gen_event {lager_file_backend...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
As a follow up to my earlier question:
I have the code compiling and running but not getting a successful login from the rest server. ...
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Hello guys,
I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New








