Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 02 11:55
    pkrawat1 synchronize #497
  • Sep 02 10:51
    pkrawat1 synchronize #497
  • Sep 01 12:22
    pkrawat1 synchronize #497
  • Sep 01 10:47
    pkrawat1 synchronize #497
  • Aug 30 11:22
    pkrawat1 synchronize #497
  • Aug 29 11:11
    pkrawat1 synchronize #497
  • Aug 28 16:38
    pkrawat1 synchronize #497
  • Aug 28 05:39
    pkrawat1 synchronize #497
  • Aug 26 13:45
    pkrawat1 synchronize #497
  • Aug 25 17:42
    pkrawat1 converted_to_draft #497
  • Aug 25 17:42
    pkrawat1 opened #497
  • Aug 08 06:05
    pkrawat1 closed #496
  • Aug 08 06:04
    pkrawat1 synchronize #496
  • Aug 07 10:04
    pkrawat1 review_requested #496
  • Aug 07 09:57
    pkrawat1 synchronize #496
  • Aug 07 09:56
    pkrawat1 ready_for_review #496
  • Aug 07 09:56
    pkrawat1 converted_to_draft #496
  • Aug 07 09:53
    pkrawat1 edited #496
  • Aug 07 09:45
    pkrawat1 ready_for_review #496
  • Aug 07 09:37
    pkrawat1 synchronize #496
Pankaj Rawat๐Ÿ”ฅ๐Ÿ ๐Ÿ‘‘
@pkrawat1_twitter
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
Screenshot from 2019-04-06 12-55-54.png
The response I am getting is different. But in the second image I took it from ofypets.com (which is mentioned as example )..There it is different from the current version.
This is for both the country and state values
rmishra90
@rmishra90
hey anyone can help me with this application ? https://github.com/aviabird/angularspree
getting error while ng-serve
rmishra90
@rmishra90
getting error while ng-serve
please provide from where i can have running application code
Sathesh Rgs
@satheshrgs
Try running ng serve --configuration=dev-ng-spree
Refer package.json for possible commands
csalabs
@csalabs
Can I host avicommerce website on shared hosting after the development?
paulrusu8
@paulrusu8
I would like to ask if someone can explain to me how front-end and back-end are related: If I set the back-end as localhost:4000, then changes in the admin panel (url:localhost:4000) do not affect the database which is located in localhost:3000/api/v1. If I set localhost:3000/api/v1 as my back-end url, then again changes in the admin panel do not affect the database. Where is the link between them defined and implemented?
paulrusu8
@paulrusu8
Interestingly, if one alters the taxonomy in the admin panel, those are also changed in the header dropdown-menu.