Test in IDE wasn’t working before I’ve submitted a new version for this contribution:
For some reason version 9 can’t be found for a preview even tho it was listed as the active version on the contribution. After I’ve edited and submitted a new version it registered version 10 as active and it works now.
But if you try to start a preview with version 9 it still returns the same error.
I used following code to test that:
fetch(‘services/Contribution/startPreview’, {method: ‘POST’, body: `[${‘512255ee4b586a5cf9ff812987123aeddad5’},${9}]`})
and it returns {“id”:404,“message”:“Couldn\u0027t find the question related to this contribution”}
This time I didn’t edit it so you can properly test it.
UPD:
this one too:
I did edit this one so it’s working now but you can use
fetch(`services/Contribution/startPreview`, {method: `POST`, body: `[${`4276079e5339f70653af8c014ef64e1f7bc3`},${7}]`})
To check that previous version is missing.