Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 27 07:38
    pkrawat1 opened #498
  • Jan 27 07:37
    pkrawat1 closed #497
  • Jan 27 07:36
    pkrawat1 ready_for_review #497
  • Jan 27 07:36
    pkrawat1 edited #497
  • Jan 27 07:32
    pkrawat1 synchronize #497
  • Jan 27 07:06
    pkrawat1 synchronize #497
  • Jan 26 15:35
    pkrawat1 synchronize #497
  • Jan 26 15:29
    pkrawat1 synchronize #497
  • Jan 07 11:07
    pkrawat1 synchronize #497
  • Sep 02 2022 11:55
    pkrawat1 synchronize #497
  • Sep 02 2022 10:51
    pkrawat1 synchronize #497
  • Sep 01 2022 12:22
    pkrawat1 synchronize #497
  • Sep 01 2022 10:47
    pkrawat1 synchronize #497
  • Aug 30 2022 11:22
    pkrawat1 synchronize #497
  • Aug 29 2022 11:11
    pkrawat1 synchronize #497
  • Aug 28 2022 16:38
    pkrawat1 synchronize #497
  • Aug 28 2022 05:39
    pkrawat1 synchronize #497
  • Aug 26 2022 13:45
    pkrawat1 synchronize #497
  • Aug 25 2022 17:42
    pkrawat1 converted_to_draft #497
  • Aug 25 2022 17:42
    pkrawat1 opened #497
Sathesh Rgs
@satheshrgs
Screenshot from 2019-03-10 16-16-27.png
I am getting this error when trying to upload images
Sathesh Rgs
@satheshrgs
Screenshot from 2019-03-10 16-43-12.png
And this error while seeding database
in manual installation
paulrusu8
@paulrusu8
I get the same seeding error as @satheshrgs.
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
The error says elastic search is not running
Or elastic search URL is not properly set
By setting environment variables
paulrusu8
@paulrusu8
Same thing after sudo service elasticsearch start
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
Env variables are not loaded
Did you follow loading env variables
Pankaj Kumar Rawat
@pkrawat1
run mv env/local.env_remove_me env/local.env
and then source env/local.env
paulrusu8
@paulrusu8
That worked, thanks!!
I don't know how that happened since the sourcing is in your installation guidelines and I definitely implemented it. Guess opened another terminal along the lines and forgot re-sourcing. Thanks a lot again.
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
๐Ÿ‘
paulrusu8
@paulrusu8
I have another issue: after creating, migrating, seeding, populating the backend database, and running mix cmd --app snitch_core mix elasticsearch.build products --cluster Snitch.Tools.ElasticsearchCluster, I get following error to be seen in the terminal screenshot alt. Any idea how to resolve this issue ?
paulrusu8
@paulrusu8
Image reference from Dropbox not working, so here is the error message in code form :
** (Mix) Index products could not be created. %Elasticsearch.Exception{col: nil, line: nil, message: "Invalid alias name [products], an index exists with the same name as the alias", query: nil, raw: %{"error" => %{"index" => "products", "index_uuid" => "8frt-VY8RdOgqj7Xsb912A", "reason" => "Invalid alias name [products], an index exists with the same name as the alias", "root_cause" => [%{"index" => "products", "index_uuid" => "8frt-VY8RdOgqj7Xsb912A", "reason" => "Invalid alias name [products], an index exists with the same name as the alias", "type" => "invalid_alias_name_exception"}], "type" => "invalid_alias_name_exception"}, "status" => 400}, status: 400, type: "invalid_alias_name_exception"}
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
Try deleting the โ€˜productsโ€™ index
And run the elastic cluster command again
Sathesh Rgs
@satheshrgs
Deleting the products index worked for me
Thanks..!!
paulrusu8
@paulrusu8
For me, too. Thanks very much.
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
๐Ÿ‘
paulrusu8
@paulrusu8
I have discovered another problem: when I delete a user from the admin app and re-register with the same user information, I get following error message:
[error] #PID<0.958.0> running SnitchApiWeb.Endpoint (cowboy_protocol) terminated
Server: localhost:3000 (http)
Request: POST /api/v1/login
(exit) an exception was raised: (Ecto.MultipleResultsError) expected at most one result but got 5 in query:
However, the user is deleted in the users list retrieved in the admin app.
Ashish Singh
@ashish173
@paulrusu8 can you please create a github issue for it?
paulrusu8
@paulrusu8
Issue is up.
paulrusu8
@paulrusu8
Please see the issue #334 on github to inspect the solution. As it is a cumbersome workaround, I was wondering whether anyone can think of a better alternative.
Sathesh Rgs
@satheshrgs
Screenshot from 2019-03-27 22-13-42.png
I am getting
** (ArgumentError) argument error
(snitch_core) lib/core/data/model/images.ex:132: Snitch.Data.Model.Image.image_url/3
(snitch_core) lib/core/tools/elasticsearch/product/document.ex:133: Elasticsearch.Document.Snitch.Data.Schema.Product.image_map/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(snitch_core) lib/core/tools/elasticsearch/product/document.ex:24: Elasticsearch.Document.Snitch.Data.Schema.Product.encode/1
(elasticsearch) lib/elasticsearch.ex:70: Elasticsearch.put_document!/3
(snitch_core) lib/core/data/model/product.ex:176: Snitch.Data.Model.Product.update/2
(elixir) lib/enum.ex:765: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:765: Enum.each/2
The above error on loading demo
What Should I do ?
Sathesh Rgs
@satheshrgs
Any solutions ??
paulrusu8
@paulrusu8
I found the solution: If you look at the line of the error's origin, it says in lib/core/data/model/images.ex:132 : base_url <> get_image(name, struct, version). base_url is defined several lines above that : base_url = System.get_env("BACKEND_URL"). Now, if you look at your env/local.env file, the environment variable "BACKEND_URL" is not defined. So even if you source it, it does not respond with a valid variable value and so you get the message that there is an argument error. Just define the variable, source the file, and everything should work fine (it did with me).
Vikasraj Yadav
@vikasrajyadav
image.png
After cloning the package and install npm install. whenever I hit ng serve I get the error.
If anyone knows what is the problem let me know,
Vipin Yadav
@vipiny35
image.png
How to fix this? I'm running Angular7 and the repo package.json file says Spree for Angular2.
paulrusu8
@paulrusu8
@vikasrajyadav : Why do you use npm install and ng serve?
Sathesh Rgs
@satheshrgs
Thank you..There was a spelling mistake I made in the file..I figured it out..Thank you
I am not getting any country values
The country dropdown is empty
Vipin Yadav
@vipiny35

@vikasrajyadav : Why do you use npm install and ng serve?

what to use then? I have the same error. I ran npm install and then ng serveand I ended up with this error screen.

Sathesh Rgs
@satheshrgs
Try yarn install and yarn start:dev-ng-spree commands
Sathesh Rgs
@satheshrgs
@ashish173 @pkrawat1_twitter
The values from the get country API is not binded to the front end. The values which are binded in the front end is different from what is in the response ..!
Sathesh Rgs
@satheshrgs
Screenshot from 2019-04-06 12-50-44.png