Closed markheramis closed 7 months ago
I'm confused... window.tryItOutBaseUrl
and var tryItOutBaseUrl
are the same variable. It seems, for some reason, your tryItOutBaseUrl
is empty. Try logging it in your browser console.
Sorry for the confusion, it looks like it is resolved now.
I tried
<script>
console.log(tryItOutBaseUrl);
console.log(window.tryItOutBaseUrl);
</script>
And they displayed the same value now. Odd that I had the same code below my page and didn't output same few days ago.
Can't reproduce the problem anymore.
Thank you @shalvah
Scribe version
4.9
PHP version
8.1
Framework
Laravel
Framework version
v9.52.16
Scribe config
What happened?
I try to submit any of the requests from try it out feature and will not be able to submit it throwing t he following error on the javascript console:
and on the execution-error element I get this
The reason is that the try it out feature is unable to get the try it out base url since it is defined as
From here but when the button is clicked it will assembly the URL for the request based on the window.tryItOutBaseUrl
found here and also here instead of doing
and
Docs