I’m having trouble with- Bringing the images with the book data.
Keep receiving status 400 errors. Without requesting images, all book data is coming thru successfully. Trying to add code for the images and it fails everytime.
Working in
Wix Studio / Dev Mode
Site link
What I’m trying to do
Trying to bring all book information including the Images from entering the ISBN into our system
What I’ve tried so far
I have tried isbnFetcher.jsw, isbnFetcher.web.jsw. I have tried to add an event.js file to merge the front end/back end. I have tried to even use Pabbly Connect. Pabbly Connect webhooks time out as well. Bear in mind, I am still learning coding. The isbnFetcher.jsw file is successful without the images. Once the request is added to bring images, it fails every time. status 400, 403, etc.
Can you share more about what you’re trying to achieve? What’s the ideal end to end flow?
The site link has a password, but here’s what I can put together:
- Given an ISBN you want to get information about that book
What should happen? Do you need it stored in a collection on your site, are people simply searching and you want to show information?
Hi,
Thanks for getting back to me.
I built an ISBN Fetch. Using a Wix page on my site, I enter the ISBN Number. The ISBN fetch JSW file then uses the API Key/Secret established thru an account with ISBNdb. The information is captured and then sent to our Wix Store Product Page.
The code to bring the book title, description, price, sku/isbn, and weight is fully functional.
When trying to add the code to get book images to load into the product page it fails. I have tried to utilize JSW and the new web.js backend files.
The code to fetch and populate the book data from ISBN took about a week to be successful. I have spent about 2 weeks trying to figure out how to bring the images, and at this point wonder if it’s possible.
Still very new to writing code. So, maybe its user error.
I have read that Wix has pretty tight securities established when it comes to images. Not sure if this is true or not.
I thought maybe using Pabbly Connect with Google Books would help bring the images. Unfortunately, even establishing a webhook connection is futile. I was successful with a webhook one time, then it was dropped when moving to the trigger step. For some reason, the connection fails now every time.
Do you know what format the images are being returned in? e.g. are they use URLs? I’m not aware of anything that would prevent you being able to use them.
Is the product page custom?
Do you ming sharing the code you have (redacting the API Key and other sensetive info of course
)
In regards to .jsw vs .web.js, I’d always encourage using .web.js moving forward since .jsw is largely deprecated.