NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

Cannot create hit (error : missing ad_url config var) #523

Closed fspinar closed 3 years ago

fspinar commented 3 years ago

Hi all,

I am trying to use create hit command but got the following error :

Response(Operation: create_hit | Status: error | Exception: PsiturkException: missing ad_url config var ad_url_domain)

I am editing config.txt file and assigning my heroku app's url to ad_url_domain, but I still get the same error.

Any suggestions ?

Thanks.

lchen64 commented 2 years ago

I have the same problem, and noticed the get_ad_url function in psiturk_config.py is not used apparently. Can this part be explained? Thanks

deargle commented 2 years ago

Not enough information!

On Wed, Dec 8, 2021, 4:56 PM lchen64 @.***> wrote:

I have the same problem, and noticed the get_ad_url function in psiturk_config.py is not used apparently. Can this part be explained? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NYUCCL/psiTurk/issues/523#issuecomment-989322741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI6Y7ODGAFFTOWX4ZLZQQTUP7WCTANCNFSM47SXBREQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lchen64 commented 2 years ago

Yeah I realized that too late, sorry.

So the problem I am having is that my heroku ad url is set, and read correctly by psiTurk, but the app page just says "There is nothing here yet"

Earlier I didn't have this problem, but when MTurkers tried to do my task, they finished it but were not able to hit Submit afterwards. Could this be an issue with them needing to reload the page first? I saw a forum post about the submit part being finicky since its a JavaScript Ajax request embedded in HTML. Thanks!

On Wed, Dec 8, 2021, 9:22 PM Dave Eargle @.***> wrote:

Not enough information!

On Wed, Dec 8, 2021, 4:56 PM lchen64 @.***> wrote:

I have the same problem, and noticed the get_ad_url function in psiturk_config.py is not used apparently. Can this part be explained? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NYUCCL/psiTurk/issues/523#issuecomment-989322741, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAI6Y7ODGAFFTOWX4ZLZQQTUP7WCTANCNFSM47SXBREQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NYUCCL/psiTurk/issues/523#issuecomment-989443811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBQTXVYL3F3NJC2M7N4JWDUQAHHNANCNFSM47SXBREQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

deargle commented 2 years ago

Those two problems don't sound related. If there's "nothing here yet," then you're not pushing your code to your heroku git repo, regardless of if you have the heroku url set correctly in psiturk config.