chwajeeh

chwajeeh

** (EXIT from #PID<0.8019.0>) an exception was raised: ** (ArgumentError) errors were found at the given arguments

HI, i am running my integration test in terminal and got this error…

** (EXIT from #PID<0.8019.0>) an exception was raised:
** (ArgumentError) errors were found at the given arguments:

   * 1st argument: the table identifier does not refer to an existing ETS table
 
         (stdlib 3.16.1) :ets.lookup(:fake_http_client, :responses)
         (app_count 0.2.0) lib/app_count/core/ets.ex:16: AppCount.Core.ETS.get/2
         (app_count 0.2.0) test/support/http_client.ex:57: AppCount.Support.HTTPClient.next_response/1
         (app_count 0.2.0) lib/app_count/core/http_client.ex:5: AppCount.Core.HTTPClient.get/3
         (app_count 0.2.0) lib/app_count/data/utils/pdf.ex:26: AppCount.Data.Utils.PDF.write_tmp_pdf/2
         (elixir 1.13.0) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
         (elixir 1.13.0) lib/task/supervised.ex:34: Task.Supervised.reply/4
         (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

Most Liked

kokolegorille

kokolegorille

Hello and welcome,

Can You provide some code?

It’s hard to understand what You are trying to do…

al2o3cr

al2o3cr

The code you posted doesn’t seem directly related to this error, but here’s what I can gather from the stacktrace:

  • something (maybe in another test?) is starting a Task that calls AppCount.Data.Utils.PDF.write_tmp_pdf/2
  • that function depends on an ETS table named :fake_http_client
  • that table doesn’t exist anymore. Maybe it’s deleted by code in an on_exit?

This can happen if you’re testing something that launches a Task as a side-effect but not waiting for the task to complete.

Where Next?

Popular in Questions Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
pgiesin
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
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
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
shahryarjb
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
LegitStack
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
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New

Other popular topics Top

minhajuddin
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
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
openscript
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
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
electic
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
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New
aesmail
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
magnetic
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

We're in Beta

About us Mission Statement