All Images posted to facebook via QATS app have Biryani images by default. In image_uploader.py , there is an api which isn’t working. on printing response text,it says too many requests.
I think the images are picked up randomly from views folder rather then uploading from our directory or URLS (In module 2).
No, in image_uploader.py , uploader function takes img_base64 and upload it on web with the help of an api. If the api’s response is not a success then default image_url will be of biryani which has been already uploaded previously. After all this, upoader function returns the url of the image. As api’s response is not a success , it by default returns biryani’s url.
@rohitj Did you resolve it?
No…only this bit isn’t working . everything else is on place.
- Make sure you have not hardcoded anything which is to be passed as a variable.
- Use all parameters of the function.
- Make sure the image URL that you are using is public and does not require login.
still struck can anybody help?
sir, the problem was with API’s credentials. When I used my own credentials, It worked perfectly.
BTW, my mini project is completed.
Great news. Congratulations!
Sir, there was one more problem,
when user share a review, the app sends a dictionary to the backend, where dictionary is supposed to have img,text,orderId,tags and share. But… it is missing orderId, that’s why I was getting assertion error. I fixed it temporarily by giving it a dummy orderId . please look at this too
Still stuck with this issue.(Getting the default image(Biryani))
this is a response I saw from @Rahul-Crio.do
It’s actually not this problem. Read my other comments.