You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert a row with text. In my case, I used this "0281E3986958"
Run artisan scout:import or artisan scout:reimport
Observed behavior: An error occurs InvalidArgumentException : json_encode error: Inf and NaN cannot be JSON encoded
Expected behavior: Should import fine.
Findings:
This was caused by "0281E3986958" data that is treated as an exponential number and was converted into INF (["column" => INF]).
Line that is causing this is L116
Tried replacing ->transform($array) with ->toArray() and it imported fine.