laravel-request-docs icon indicating copy to clipboard operation
laravel-request-docs copied to clipboard

[BUG] Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)

Open danielhr2001 opened this issue 6 months ago • 1 comments

Describe the bug After installing this package, I ran php artisan serve and opened 127.0.0.1:8000/request-docs without any error. (There was no error at 127.0.0.1:8000/request-docs/api too, and it was ok.) But when I use send option to test my route, it gives me an error for every route's Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)'.

So I checked 127.0.0.1/request-docs/config too, and there was this config: { "title": "LRD - Laravel Request Docs", "default_headers": { "Content-Type": "application/json", "Accept": "application/json" } }

To Reproduce Steps to reproduce the behavior:

  1. composer require rakutentech/laravel-request-docs
  2. php artisan serve
  3. Open http://127.0.0.1:8000/request-docs without any problem
  4. Test every route by send option and get the error
  5. Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)

Screenshots

Image

Desktop (please complete the following information):

  • OS: [Windows 11]
  • Browser [Chrome Version 137.0.7151.69 (Official Build) (64-bit)]

Versions (please complete the following information):

  • Laravel Version: ^10
  • PHP Version: ^8.2
  • Laravel Request Docs Version: ^2

danielhr2001 avatar Jun 10 '25 14:06 danielhr2001

Hmmm. Will see.

kevincobain2000 avatar Jun 10 '25 14:06 kevincobain2000