ratty-blush
ratty-blushβ€’2y ago

Screenshot Actor on GPT

Hi πŸ™‚ I get the following error on the screenshot generator on a GPT. It worked once now hasnt worked since. Any ideas? Thanks
No description
23 Replies
ratty-blush
ratty-blushOPβ€’2y ago
plus it says in Apify they were successful
No description
flat-fuchsia
flat-fuchsiaβ€’2y ago
Hi @Kyle Behrend, you may try an alternative actor - https://console.apify.com/view/runs/c1cKUjg2XdjDch9ON
Apify
Apify Console
Manage the Apify platform and your account.
ratty-blush
ratty-blushOPβ€’2y ago
still get error
No description
flat-fuchsia
flat-fuchsiaβ€’2y ago
In this case, I think you didn't provide valid file output type. See this field on the input JSON - "output_type": "png", Can you try running using these options:
{
"delay_between_scrolls": 1000,
"device_scale_factor": "2",
"initial_page_scroll_delay_interval": 200,
"maxRequestRetries": 3,
"output_type": "png",
"proxyConfig": {
"useApifyProxy": true,
"apifyProxyGroups": []
},
"urls": [
"https://wwf.org.au/donate/"
],
"viewport_height": 1024,
"viewport_width": 1280,
"handlePageTimeoutSecs": 5000
}
{
"delay_between_scrolls": 1000,
"device_scale_factor": "2",
"initial_page_scroll_delay_interval": 200,
"maxRequestRetries": 3,
"output_type": "png",
"proxyConfig": {
"useApifyProxy": true,
"apifyProxyGroups": []
},
"urls": [
"https://wwf.org.au/donate/"
],
"viewport_height": 1024,
"viewport_width": 1280,
"handlePageTimeoutSecs": 5000
}
ratty-blush
ratty-blushOPβ€’2y ago
thanks for the reply πŸ™‚ Sorry where do I put this?
flat-fuchsia
flat-fuchsiaβ€’2y ago
Here -
No description
ratty-blush
ratty-blushOPβ€’2y ago
thanks so I added that in the JSON then copied the new OpenAI code to the GPT but still getting an error
ratty-blush
ratty-blushOPβ€’2y ago
No description
flat-fuchsia
flat-fuchsiaβ€’2y ago
The problem seems to be with the GPT process, not the screenshot actor itself. Can you check if the actor actually throws any error? Also, is there a way you can simply make a regular HTTP call (not via GPT)?
ratty-blush
ratty-blushOPβ€’2y ago
yeah it seems to work on apify but through the GPT it doesnt... thats the problem. I am trying to build something for the competition πŸ™‚
flat-fuchsia
flat-fuchsiaβ€’2y ago
Can you please explain what your use case is - how you intend to integrate the screenshot actor and GPT? Perhaps via DM? Maybe I may be able to help πŸ™‚ Are you trying to make the HTTP request via GPT?
ratty-blush
ratty-blushOPβ€’2y ago
thanks so much! So I want a user to enter a url of a donation page for their non profit, use this screenshot and have vision analyse the page to create suggestions for how it can be improved to get more donations
MEE6
MEE6β€’2y ago
@Kyle Behrend just advanced to level 2! Thanks for your contributions! πŸŽ‰
flat-fuchsia
flat-fuchsiaβ€’2y ago
Hmm, that's an interesting idea πŸ€“ How about this flow: - Build the GPT prompt to accept the site URL - Instead of making the HTTP call to the screenshot actor directly via GPT, make the call using a different HTTP client e.g., axios, curl, etc. - When you receive the response (which should include the image URL), feed GPT with the image URL so that it can use vision to analyse and improve the page.
ratty-blush
ratty-blushOPβ€’2y ago
Yeah want to use apify for the competition πŸ˜‰ It worked once that’s the frustrating thing lol Then it just stopped
flat-fuchsia
flat-fuchsiaβ€’2y ago
Okay, I get πŸ‘ So what actors are you using for this (aside the GPT and screenshot actors of course)? Or you are building a custom actor that integrates with two mentioned actors?
ratty-blush
ratty-blushOPβ€’2y ago
Nope that’s it just one actor to get the screenshot
flat-fuchsia
flat-fuchsiaβ€’2y ago
Okay. Is it possible to wire the integration via Zapier or Make? πŸ˜… Or you solely want everything to run on the Apify platform?
ratty-blush
ratty-blushOPβ€’2y ago
Apify for the competition Hahahha
flat-fuchsia
flat-fuchsiaβ€’2y ago
Hmmm, tough nut to crack. I wish I could help any further with this buddy πŸ™ˆ Good luck πŸ’ͺ
ratty-blush
ratty-blushOPβ€’2y ago
thanks so much!! πŸ™‚ Hopefully someone knows why its failing
ratty-blush
ratty-blushOPβ€’2y ago
I think I found the problem - it says it only has 45 seconds otherwise it times out. One worked at under 45 seconds the rest failed..... hmmm now to figure out what I can do about this lol
No description
flat-fuchsia
flat-fuchsiaβ€’2y ago
Hahaha, I see. That makes sense πŸ˜…

Did you find this page helpful?