Actor Matthew Perry died due to the acute effects of ketamine, according to a toxicology report from the Los Angeles County Medical Examiner’s Office.

The report was made public late Friday afternoon.

Contributing factors in Mr. Perry’s death include drowning, coronary artery disease and the effects of buprenorphine (used to treat opioid use disorder)," the report noted, adding that his death was ruled an accident.

Perry, who starred as Chandler Bing in the hit TV show "Friends," was found dead at his Los Angeles home on Oct. 28. He was 54 years old.

His body was discovered in a hot tub, said unnamed sources cited by TMZ, which was the first to report the news.

Perry's last Instagram post featured a photo of him in the hot tub.

Oh, so warm water swirling around makes you feel good? I'm Mattman," he wrote on October 23.

Several high-profile guests, including his "Friends" co-stars, reportedly attended Perry's funeral. Services were held for Perry at Forest Lawn Memorial Park in Los Angeles, a famous cemetery in California, according to TMZ.

Photos show Jennifer Aniston, Matt LeBlanc, Courteney Cox, Lisa Kudrow and David Schwimmer at the funeral.

Oh boy this one has cut deep ... Having to say goodbye to our Matty has been an insane wave of emotions that I’ve never experienced before," Aniston wrote, in part, on Instagram several days after Perry's death."We all experience loss at some point in our lives. Loss of life or loss of love. Being able to really SIT in this grief allows you to feel the moments of joy and gratitude for having loved someone that deep. And we loved him deeply. He was such a part of our DNA," she added."

Aniston's post came a day after LeBlanc and Cox shared their own emotional sentiments about Perry's passing.

On the show, LeBlanc portrayed Joey Tribbiani. Tribbiani and Bing were roomates for a majority of the show and shared a special bond.

It is with a heavy heart I say goodbye. The times we had together are honestly among the favorite times of my life," LeBlanc wrote. "It was an honor to share the stage with you and to call you my friend. I will always smile when I think of you and I’ll never forget you. Never. Spread your wings and fly brother you’re finally free. Much love. And I guess you’re keeping the 20 bucks you owe me."

Cox, Schwimmer and Kudrow also posted heartfelt tributes. Cox starred on the show as Monica Geller. Her character went on to marry Bing.

I am so grateful for every moment I had with you Matty and I miss you every day," Cox wrote. "When you work with someone as closely as I did with Matthew, there are thousands of moments I wish I could share. For now here’s one of my favorites. To give a little backstory, Chandler and Monica were supposed to have a one night fling in London. But because of the audience’s reaction, it became the beginning of their love story."

Cox shared footage of a scene that shows the two of them in bed, as well as the audience's uproarious applause and laughter when they find out the characters slept together.

"In this scene, before we started rolling, he whispered a funny line for me to say. He often did things like that. He was funny and he was kind," Cox added.

Schwimmer starred as Monica's brother, Ross Geller. Ross and Bing were college buddies.

Thank you for ten incredible years of laughter and creativity," Schwimmer wrote of Perry. "I will never forget your impeccable comic timing and delivery. You could take a straight line of dialogue and bend it to your will, resulting in something so entirely original and unexpectedly funny it still astonishes. And you had heart. Which you were generous with, and shared with us, so we could create a family out of six strangers."

Schwimmer added an image of him with Perry. It was from one of the show's flashback episodes, with Perry wearing a white suit and slicked hair.

"This photo is from one of my favorite moments with you," Schwimmer noted. "Now it makes me smile and grieve at the same time. I imagine you up there, somewhere, in the same white suit, hands in your pockets, looking around -- 'Could there BE any more clouds?'"

Kudrow portrayed Phoebe Buffay. Buffay, a musician and masseuse, was often found enjoying a cup of coffee at Central Perk with Bing.

In her post, Kudrow expressed gratitude to Perry for being such a great friend and colleague.

Thank you for your open heart in a six way relationship that required compromise. And a lot of 'talking.' Thank you for showing up at work when you weren’t well and then, being completely brilliant. Thank you for the best 10 years a person gets to have. Thank you for trusting me. Thank you for all I learned about GRACE and LOVE through knowing you. Thank you for the time I got to have with you, Matthew," Kudrow wrote.

Just a few days after Perry's death, his memoir, which was released a year ago, was the number one selling book on Amazon.

Perry's autobiography, “Friends, Lovers, and The Big Terrible Thing,” was a bestseller on Nov. 1, replacing Britney Spears' “The Woman In Me” at the top of the Amazon charts.

In the book, the actor shared details about his 10 years on "Friends," as well as his love for his co-stars. He also chronicalled his intense back-and-forth fight with addiction that he said started in 1996. He struggled with both drugs and alcohol, as well as cigarettes.

The actor also said he wanted to be remembered for more than his role as the loveable -- and hysterical -- Chandler Bing. He used his fame and fortune to help others, as well as aided other addicts in need.

When I die, I don't want 'Friends' to be the first thing that's mentioned -- I want helping others to be the first thing that's mentioned. And I'm going to live the rest of my life proving that," Perry said before his passing. "Addiction is far too powerful for anyone to defeat alone. But together, one day at a time, we can beat it down."

_______

EDITOR'S NOTE: The Associated Press contributed to this report.

ncG1vNJzZmihlJa1sLrEsKpnm5%2BifK%2Bx1qxmnqakmr%2B1rcinpJ6mpGS6osDToZywZaCav7PFjJ2gnpxdmcKmedOoZJqbpamybrHFn5ycrKNivKd5yp6rmqWZo7JuvsSppqusXaiuur%2BMraaxoZOkubCz2Gapnqifp8FustGinKeco2LBt3nSoqucp51irqTAzqtkmqSTpLWwuIydqa6fo2KupbDInKuip55isaat06FknaqfrLuqusZmmqiqn6Ous8WMmqmtnaKueqW10p6YrJ1dnbKiuNOhZKGdkafBbrXSrKyeq12XwrG%2BxKemq6iYnrum