I pasted a URL to the Rich Results test, and it was successfully crawled but returns No Items Detected. If I copied the html content and pasted that in it shows the JobPosting correctly.
As you can see in this picture json-ld script is visible but when I paste the URL in Rich Results Test it shows as no items detected. If I copy and paste the Html element it shows as valid item detected.
Two things to try out: