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

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
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
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
ashish173
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
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
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36352 110
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
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
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement