Skip to content

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

@danielhr2001

Description

@danielhr2001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions